Skip to content

Commit

Permalink
fix(format): fixes format issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pavankjadda committed Jun 8, 2022
1 parent 7d7a6e4 commit 9ae38d7
Show file tree
Hide file tree
Showing 7 changed files with 145 additions and 51 deletions.
143 changes: 126 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"karma-coverage": "^2.2.0",
"karma-jasmine": "^5.0.1",
"karma-jasmine-html-reporter": "^1.7.0",
"ng-packagr": "^14.0.0-rc.0",
"ng-packagr": "^14.0.0",
"ts-node": "^10.7.0",
"typescript": "^4.6.4"
"typescript": "^4.7.3"
}
}
13 changes: 5 additions & 8 deletions projects/ngx-cookie-service-ssr/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = function (config) {
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma')
require('@angular-devkit/build-angular/plugins/karma'),
],
client: {
jasmine: {
Expand All @@ -19,18 +19,15 @@ module.exports = function (config) {
// for example, you can disable the random execution with `random: false`
// or set a specific seed with `seed: 4321`
},
clearContext: false // leave Jasmine Spec Runner output visible in browser
clearContext: false, // leave Jasmine Spec Runner output visible in browser
},
jasmineHtmlReporter: {
suppressAll: true // removes the duplicated traces
suppressAll: true, // removes the duplicated traces
},
coverageReporter: {
dir: require('path').join(__dirname, '../../coverage/ngx-cookie-service-ssr'),
subdir: '.',
reporters: [
{ type: 'html' },
{ type: 'text-summary' }
]
reporters: [{ type: 'html' }, { type: 'text-summary' }],
},
reporters: ['progress', 'kjhtml'],
port: 9876,
Expand All @@ -39,6 +36,6 @@ module.exports = function (config) {
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
restartOnFileChange: true,
});
};
2 changes: 1 addition & 1 deletion projects/ngx-cookie-service-ssr/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"lib": {
"entryFile": "src/public-api.ts"
}
}
}
16 changes: 7 additions & 9 deletions projects/ngx-cookie-service-ssr/src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,21 @@
import 'zone.js';
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';

declare const require: {
context(path: string, deep?: boolean, filter?: RegExp): {
context(
path: string,
deep?: boolean,
filter?: RegExp
): {
<T>(id: string): T;
keys(): string[];
};
};

// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting(),
);
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());

// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
Expand Down
5 changes: 1 addition & 4 deletions projects/ngx-cookie-service-ssr/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@
"inlineSources": true,
"types": []
},
"exclude": [
"src/test.ts",
"**/*.spec.ts"
]
"exclude": ["src/test.ts", "**/*.spec.ts"]
}
13 changes: 3 additions & 10 deletions projects/ngx-cookie-service-ssr/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,8 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": [
"jasmine"
]
"types": ["jasmine"]
},
"files": [
"src/test.ts"
],
"include": [
"**/*.spec.ts",
"**/*.d.ts"
]
"files": ["src/test.ts"],
"include": ["**/*.spec.ts", "**/*.d.ts"]
}

0 comments on commit 9ae38d7

Please sign in to comment.