Skip to content

Commit 994c10e

Browse files
update test
1 parent 160f30a commit 994c10e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/load.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,11 +439,11 @@ describe("load", function () {
439439
const snapshotName = "Test";
440440
mockAppConfigurationClientGetSnapshot(snapshotName, {compositionType: "key_label"});
441441
const connectionString = createMockedConnectionString();
442-
expect(load(connectionString, {
442+
await expect(load(connectionString, {
443443
selectors: [{
444444
snapshotName: snapshotName
445445
}]
446-
})).eventually.rejectedWith(`Composition type for the selected snapshot with name ${snapshotName} must be 'key'.`);
446+
})).to.eventually.be.rejectedWith(`Composition type for the selected snapshot with name ${snapshotName} must be 'key'.`);
447447
restoreMocks();
448448
});
449449
});

0 commit comments

Comments
 (0)