Skip to content

Commit 7f539ae

Browse files
author
Santiago Gonzalez
committed
Update test.json path
1 parent 96f570d commit 7f539ae

7 files changed

+10
-7
lines changed

extensions/msal-node-extensions/test/dpapi-addon/Dpapi.spec.ts

+3
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,8 @@ if(platform === "win32"){
3535
expect(decryptedData).toEqual(data);
3636
});
3737
});
38+
} else {
39+
// Jest require that a .spec.ts file contain at least one test.
40+
test("Empty test", () => {});
3841
}
3942

extensions/msal-node-extensions/test/lock/CrossPlatformLock.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ describe('Test cross platform lock', () => {
1717
piiLoggingEnabled: false
1818
};
1919
const logger = new Logger(loggerOptions);
20-
const lockFilePath = "./test-data/test.lockfile";
20+
const lockFilePath = "./test.lockfile";
2121

2222
afterEach(async () => {
2323
await FileSystemUtils.cleanUpFile(lockFilePath);
2424
});
2525

2626
test('export a class', () => {
27-
const lock = new CrossPlatformLock("./test.lockfile", logger);
27+
const lock = new CrossPlatformLock(lockFilePath, logger);
2828
expect(lock).toBeInstanceOf(CrossPlatformLock);
2929
});
3030

extensions/msal-node-extensions/test/persistence/FilePersistence.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { FileSystemUtils } from "../util/FileSystemUtils";
88

99
describe('Test File Persistence', () => {
1010

11-
const filePath = ".test-data/test.json";
11+
const filePath = "./test.json";
1212

1313
afterEach(async () => {
1414
await FileSystemUtils.cleanUpFile(filePath);

extensions/msal-node-extensions/test/persistence/FilePersistenceWithDataProtection.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { mocked } from 'ts-jest/utils';
1111
jest.mock("../../src/dpapi-addon/Dpapi");
1212

1313
describe('Test File Persistence with data protection', () => {
14-
const filePath = "test-data/dpapi-test.json";
14+
const filePath = "./dpapi-test.json";
1515
const dpapiScope = DataProtectionScope.LocalMachine;
1616

1717
afterEach(async () => {

extensions/msal-node-extensions/test/persistence/KeychainPersistence.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { setPassword, getPassword, deletePassword } from "keytar";
1010
jest.mock("keytar");
1111

1212
describe('Test KeyChainPersistence', () => {
13-
const filePath = "test-data/keychain-test.json";
13+
const filePath = "./keychain-test.json";
1414
const serviceName = "testService";
1515
const accountName = "accountName";
1616

extensions/msal-node-extensions/test/persistence/LibSecretPersistence.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { setPassword, getPassword, deletePassword } from "keytar";
1010
jest.mock("keytar");
1111

1212
describe('Test LibSecretPersistence', () => {
13-
const filePath = "test-data/libsecret-test.json";
13+
const filePath = "./libsecret-test.json";
1414
const serviceName = "testService";
1515
const accountName = "accountName";
1616

extensions/msal-node-extensions/test/persistence/PersistenceCachePlugin.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { IPersistence, PersistenceCachePlugin } from "../../src";
77
import { Logger } from "@azure/msal-common";
88

99
describe('Test PersistenceCachePlugin', () => {
10-
const filePath = "test-data/test.json";
10+
const filePath = "./test.json";
1111
const mockCacheData = "mockCacheData";
1212

1313
const mockPersistence: IPersistence = {

0 commit comments

Comments
 (0)