Skip to content

Commit 272e94e

Browse files
committed
972599: To resolve Git Dependabot alerts
1 parent 6eef78d commit 272e94e

File tree

5 files changed

+70
-42
lines changed

5 files changed

+70
-42
lines changed

angular.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"main": "src/main.ts",
1919
"polyfills": "src/polyfills.ts",
2020
"tsConfig": "tsconfig.app.json",
21-
"aot": false,
21+
"aot": true,
2222
"assets": [
2323
"src/favicon.ico",
2424
"src/assets"
@@ -39,7 +39,6 @@
3939
"optimization": true,
4040
"outputHashing": "all",
4141
"sourceMap": false,
42-
"extractCss": true,
4342
"namedChunks": false,
4443
"aot": true,
4544
"extractLicenses": true,

karma.conf.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,16 @@ module.exports = function (config) {
1313
require('@angular-devkit/build-angular/plugins/karma')
1414
],
1515
client: {
16-
clearContext: false // leave Jasmine Spec Runner output visible in browser
16+
clearContext: false, // leave Jasmine Spec Runner output visible in browser
17+
jasmine: {
18+
// you can add configuration options for Jasmine here
19+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
20+
// for example, you can disable the random execution order
21+
random: true
22+
}
23+
},
24+
jasmineHtmlReporter: {
25+
suppressAll: true // removes the duplicated traces
1726
},
1827
coverageIstanbulReporter: {
1928
dir: require('path').join(__dirname, './coverage/schedule-ang8'),
@@ -27,6 +36,13 @@ module.exports = function (config) {
2736
autoWatch: true,
2837
browsers: ['Chrome'],
2938
singleRun: false,
30-
restartOnFileChange: true
39+
restartOnFileChange: true,
40+
// Karma 6+ requires explicit browser configuration for Chrome
41+
customLaunchers: {
42+
ChromeHeadlessCI: {
43+
base: 'ChromeHeadless',
44+
flags: ['--no-sandbox', '--disable-web-security']
45+
}
46+
}
3147
});
3248
};

package.json

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,43 @@
1010
"e2e": "ng e2e"
1111
},
1212
"private": true,
13+
"engines": {
14+
"node": ">=14.15.0",
15+
"npm": ">=6.14.8"
16+
},
1317
"dependencies": {
14-
"@angular/animations": "~8.2.14",
15-
"@angular/common": "~8.2.14",
16-
"@angular/compiler": "~8.2.14",
17-
"@angular/core": "~8.2.14",
18-
"@angular/forms": "~8.2.14",
19-
"@angular/platform-browser": "~8.2.14",
20-
"@angular/platform-browser-dynamic": "~8.2.14",
21-
"@angular/router": "~8.2.14",
22-
"@syncfusion/ej2-angular-schedule": "*",
23-
"rxjs": "~6.4.0",
24-
"tslib": "^1.10.0",
25-
"zone.js": "~0.9.1"
18+
"@angular/animations": "~10.2.5",
19+
"@angular/common": "~10.2.5",
20+
"@angular/compiler": "~10.2.5",
21+
"@angular/core": "~10.2.5",
22+
"@angular/forms": "~10.2.5",
23+
"@angular/platform-browser": "~10.2.5",
24+
"@angular/platform-browser-dynamic": "~10.2.5",
25+
"@angular/router": "~10.2.5",
26+
"@syncfusion/ej2-angular-schedule": "^18.4.30",
27+
"rxjs": "~6.6.0",
28+
"tslib": "^2.0.0",
29+
"zone.js": "~0.10.2"
2630
},
2731
"devDependencies": {
28-
"@angular-devkit/build-angular": "~0.803.20",
29-
"@angular/cli": "~8.3.20",
30-
"@angular/compiler-cli": "~8.2.14",
31-
"@angular/language-service": "~8.2.14",
32-
"@types/node": "~8.9.4",
33-
"@types/jasmine": "~3.3.8",
32+
"@angular-devkit/build-angular": "~0.1002.4",
33+
"@angular/cli": "~10.2.4",
34+
"@angular/compiler-cli": "~10.2.5",
35+
"@angular/language-service": "~10.2.5",
36+
"@types/jasmine": "~3.6.0",
3437
"@types/jasminewd2": "~2.0.3",
35-
"codelyzer": "^5.0.0",
36-
"jasmine-core": "~3.4.0",
37-
"jasmine-spec-reporter": "~4.2.1",
38-
"karma": "~4.1.0",
39-
"karma-chrome-launcher": "~2.2.0",
40-
"karma-coverage-istanbul-reporter": "~2.0.1",
41-
"karma-jasmine": "~2.0.1",
42-
"karma-jasmine-html-reporter": "^1.4.0",
43-
"protractor": "~5.4.0",
44-
"ts-node": "~7.0.0",
45-
"tslint": "~5.15.0",
46-
"typescript": "~3.5.3"
38+
"@types/node": "^14.14.0",
39+
"codelyzer": "^6.0.0",
40+
"jasmine-core": "~3.8.0",
41+
"jasmine-spec-reporter": "~5.0.0",
42+
"karma": "~6.3.16",
43+
"karma-chrome-launcher": "~3.1.0",
44+
"karma-coverage-istanbul-reporter": "~3.0.2",
45+
"karma-jasmine": "~4.0.0",
46+
"karma-jasmine-html-reporter": "^1.5.0",
47+
"protractor": "~7.0.0",
48+
"ts-node": "~8.3.0",
49+
"tslint": "~6.1.0",
50+
"typescript": "~4.0.2"
4751
}
4852
}

src/app/app.component.spec.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
import { TestBed, async } from '@angular/core/testing';
22
import { AppComponent } from './app.component';
3+
import { ScheduleModule } from '@syncfusion/ej2-angular-schedule';
4+
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
35

46
describe('AppComponent', () => {
57
beforeEach(async(() => {
68
TestBed.configureTestingModule({
79
declarations: [
810
AppComponent
911
],
12+
imports: [
13+
ScheduleModule
14+
],
15+
schemas: [CUSTOM_ELEMENTS_SCHEMA]
1016
}).compileComponents();
1117
}));
1218

@@ -22,10 +28,10 @@ describe('AppComponent', () => {
2228
expect(app.title).toEqual('schedule-ang8');
2329
});
2430

25-
it('should render title', () => {
31+
it('should render schedule component', () => {
2632
const fixture = TestBed.createComponent(AppComponent);
2733
fixture.detectChanges();
2834
const compiled = fixture.debugElement.nativeElement;
29-
expect(compiled.querySelector('.content span').textContent).toContain('schedule-ang8 app is running!');
35+
expect(compiled.querySelector('ejs-schedule')).toBeTruthy();
3036
});
3137
});

tsconfig.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,27 @@
33
"compilerOptions": {
44
"baseUrl": "./",
55
"outDir": "./dist/out-tsc",
6+
"forceConsistentCasingInFileNames": true,
7+
"strict": true,
8+
"noImplicitReturns": true,
9+
"noFallthroughCasesInSwitch": true,
610
"sourceMap": true,
711
"declaration": false,
812
"downlevelIteration": true,
913
"experimentalDecorators": true,
10-
"module": "esnext",
1114
"moduleResolution": "node",
1215
"importHelpers": true,
1316
"target": "es2015",
14-
"typeRoots": [
15-
"node_modules/@types"
16-
],
17+
"module": "es2020",
1718
"lib": [
1819
"es2018",
1920
"dom"
2021
]
2122
},
2223
"angularCompilerOptions": {
23-
"fullTemplateTypeCheck": true,
24-
"strictInjectionParameters": true
24+
"enableI18nLegacyMessageIdFormat": false,
25+
"strictInjectionParameters": true,
26+
"strictInputAccessModifiers": true,
27+
"strictTemplates": true
2528
}
2629
}

0 commit comments

Comments
 (0)