Skip to content

Commit de0c6b7

Browse files
committed
consolidate tests into index.test.ts
1 parent f6035cd commit de0c6b7

File tree

3 files changed

+16
-44
lines changed

3 files changed

+16
-44
lines changed

src/scenarios/client/auth/basic-dcr.test.ts

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/scenarios/client/auth/basic-metadata-var1.test.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/scenarios/client/auth/index.test.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,19 @@ describe('Client Auth Scenarios', () => {
2424
});
2525
}
2626
});
27+
28+
describe('Negative tests', () => {
29+
test('bad client requests root PRM location', async () => {
30+
const clientPath = path.join(
31+
process.cwd(),
32+
'examples/clients/typescript/auth-test-broken1.ts'
33+
);
34+
const runner = new SpawnedClientRunner(clientPath);
35+
await runClientAgainstScenario(runner, 'auth/basic-dcr', [
36+
// There will be other failures, but this is the one that matters
37+
'prm-priority-order'
38+
]);
39+
});
40+
41+
// TODO: Add more negative tests here
42+
});

0 commit comments

Comments
 (0)