From fa03a3f57b21beb5c31b8bbc55371dcd3e61783e Mon Sep 17 00:00:00 2001 From: Balint Soos Date: Tue, 6 Sep 2016 17:49:08 +0200 Subject: [PATCH] #32 missing proxy behaviour tests --- spec/proxy/memorySpec.js | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/spec/proxy/memorySpec.js b/spec/proxy/memorySpec.js index 183ec3f..5c59758 100644 --- a/spec/proxy/memorySpec.js +++ b/spec/proxy/memorySpec.js @@ -288,7 +288,23 @@ describe("memory proxy", function() { }); describe("proxy behaviour", function() { - it("should complete proxyBehaviour tests", function() { + describe("should complete proxyBehaviour tests", function() { + var messages = { + errorMessages: { + NOT_FOUND: "NOT_FOUND", + DUPLICATE_KEY: "duplicate key error message" + } + }; + + var createMemoryProxy = memoryProxyCore({ + messages: messages + }); + + var memoryProxy = createMemoryProxy({ + idProperty: "id", + idType: "string" + }); + proxyBehaviour("memory", memoryProxy); }); }); @@ -401,4 +417,4 @@ describe("memory proxy", function() { }); -}); \ No newline at end of file +});