Skip to content

Commit 4d905c4

Browse files
committed
fix require statement
1 parent 9d28c36 commit 4d905c4

6 files changed

Lines changed: 8 additions & 20 deletions

File tree

1-Authentication/2-sign-in-angular/SPA/karma.conf.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,14 @@ module.exports = function (config) {
3333
]
3434
},
3535
reporters: ['progress', 'kjhtml'],
36-
port: 9876,
37-
colors: true,
38-
logLevel: config.LOG_INFO,
39-
autoWatch: true,
40-
browsers: ['Chrome', 'ChromeHeadless', 'ChromeHeadlessCI'],
36+
browsers: ['Chrome'],
4137
customLaunchers: {
4238
ChromeHeadlessCI: {
4339
base: 'ChromeHeadless',
4440
flags: ['--no-sandbox']
4541
}
4642
},
47-
singleRun: false,
48-
restartOnFileChange: true
43+
restartOnFileChange: true,
44+
singleRun: true
4945
});
5046
};

1-Authentication/2-sign-in-angular/SPA/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1-Authentication/2-sign-in-angular/SPA/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@types/jasmine": "~5.1.4",
3535
"jasmine-core": "~5.1.2",
3636
"karma": "~6.4.3",
37-
"karma-chrome-launcher": "~3.2.0",
37+
"karma-chrome-launcher": "^3.2.0",
3838
"karma-coverage": "~2.2.1",
3939
"karma-jasmine": "~5.1.0",
4040
"karma-jasmine-html-reporter": "~2.1.0",

1-Authentication/2-sign-in-angular/SPA/src/app/auth-config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ import {
1818
*/
1919
export const msalConfig: Configuration = {
2020
auth: {
21-
// clientId: 'Enter_the_Application_Id_Here', // This is the ONLY mandatory field that you need to supply.
22-
// authority: 'https://Enter_the_Tenant_Subdomain_Here.ciamlogin.com/', // Replace the placeholder with your tenant subdomain
23-
clientId: '94fc755a-af32-43f9-9ce6-5f86f2beb928', // This is the ONLY mandatory field that you need to supply.
24-
authority: 'https://TrialTenantkwFwHYij.ciamlogin.com//', // Replace the placeholder with your tenant subdomain
21+
clientId: 'Enter_the_Application_Id_Here', // This is the ONLY mandatory field that you need to supply.
22+
authority: 'https://Enter_the_Tenant_Subdomain_Here.ciamlogin.com/', // Replace the placeholder with your tenant subdomain
2523
redirectUri: '/', // Points to window.location.origin by default. You must register this URI on Azure portal/App Registration.
2624
postLogoutRedirectUri: '/', // Points to window.location.origin by default.
2725
},

1-Authentication/2-sign-in-angular/SPA/src/app/sample.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Router, RouterModule } from '@angular/router';
22
import { ComponentFixture, TestBed } from '@angular/core/testing';
3-
// import { RouterTestingModule } from '@angular/router/testing';
43

54
import { MSAL_GUARD_CONFIG, MsalGuardConfiguration } from '@azure/msal-angular';
65
import { InteractionType } from '@azure/msal-browser';

1-Authentication/2-sign-in-angular/SPA/src/test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,4 @@ declare const require: {
1818
getTestBed().initTestEnvironment(
1919
BrowserDynamicTestingModule,
2020
platformBrowserDynamicTesting(),
21-
);
22-
23-
// Then we find all the tests.
24-
const context = require.context('./', true, /\.spec\.ts$/);
25-
// And load the modules.
26-
context.keys().forEach(context);
21+
);

0 commit comments

Comments
 (0)