We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1105531 commit 7d98b58Copy full SHA for 7d98b58
1 file changed
test/load.test.ts
@@ -433,5 +433,18 @@ describe("load", function () {
433
expect(settings).not.undefined;
434
435
expect(settings.get("TestKey")).eq("TestValue");
436
+ restoreMocks();
437
+ });
438
+
439
+ it("should throw error when snapshot composition type is not key", async () => {
440
+ const snapshotName = "Test";
441
+ mockAppConfigurationClientGetSnapshot(snapshotName, {compositionType: "key_label"});
442
+ const connectionString = createMockedConnectionString();
443
+ expect(load(connectionString, {
444
+ selectors: [{
445
+ snapshotName: snapshotName
446
+ }]
447
+ })).eventually.rejectedWith(`Composition type for the selected snapshot with name ${snapshotName} must be 'key'.`);
448
449
});
450
0 commit comments