From 80873e4ea976dac17d2863aa6e96fb520c6556bd Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 3 Jul 2018 21:27:55 +0100 Subject: [PATCH] fix settings api test for context stores --- test/red/api/editor/settings_spec.js | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/test/red/api/editor/settings_spec.js b/test/red/api/editor/settings_spec.js index 142d5731a..631d0907a 100644 --- a/test/red/api/editor/settings_spec.js +++ b/test/red/api/editor/settings_spec.js @@ -59,7 +59,8 @@ describe("api/editor/settings", function() { }, nodes: { paletteEditorEnabled: function() { return true; }, - getCredentialKeyType: function() { return "test-key-type"} + getCredentialKeyType: function() { return "test-key-type"}, + listContextStores: function() { return {default: "foo", stores: ["foo","bar"]}} }, log: { error: console.error }, storage: {} @@ -73,6 +74,7 @@ describe("api/editor/settings", function() { } res.body.should.have.property("httpNodeRoot","testHttpNodeRoot"); res.body.should.have.property("version","testVersion"); + res.body.should.have.property("context",{default: "foo", stores: ["foo","bar"]}); res.body.should.have.property("paletteCategories",["red","blue","green"]); res.body.should.have.property("editorTheme",{test:456}); res.body.should.have.property("testNodeSetting","helloWorld"); @@ -95,7 +97,8 @@ describe("api/editor/settings", function() { }, nodes: { paletteEditorEnabled: function() { return true; }, - getCredentialKeyType: function() { return "test-key-type"} + getCredentialKeyType: function() { return "test-key-type"}, + listContextStores: function() { return {default: "foo", stores: ["foo","bar"]}} }, log: { error: console.error }, storage: {} @@ -130,7 +133,8 @@ describe("api/editor/settings", function() { }, nodes: { paletteEditorEnabled: function() { return true; }, - getCredentialKeyType: function() { return "test-key-type"} + getCredentialKeyType: function() { return "test-key-type"}, + listContextStores: function() { return {default: "foo", stores: ["foo","bar"]}} }, log: { error: console.error }, storage: { @@ -169,7 +173,8 @@ describe("api/editor/settings", function() { }, nodes: { paletteEditorEnabled: function() { return true; }, - getCredentialKeyType: function() { return "test-key-type"} + getCredentialKeyType: function() { return "test-key-type"}, + listContextStores: function() { return {default: "foo", stores: ["foo","bar"]}} }, log: { error: console.error }, storage: { @@ -211,7 +216,8 @@ describe("api/editor/settings", function() { }, nodes: { paletteEditorEnabled: function() { return true; }, - getCredentialKeyType: function() { return "test-key-type"} + getCredentialKeyType: function() { return "test-key-type"}, + listContextStores: function() { return {default: "foo", stores: ["foo","bar"]}} }, log: { error: console.error }, storage: { @@ -248,8 +254,8 @@ describe("api/editor/settings", function() { }, nodes: { paletteEditorEnabled: function() { return false; }, - getCredentialKeyType: function() { return "test-key-type"} - + getCredentialKeyType: function() { return "test-key-type"}, + listContextStores: function() { return {default: "foo", stores: ["foo","bar"]}} }, log: { error: console.error }, storage: {}