From 73c414be30a6127a0791a510ef64e9b56490482b Mon Sep 17 00:00:00 2001 From: Michael Bauer Date: Thu, 13 Sep 2012 16:35:43 +0200 Subject: [PATCH] changed memory test to reflect changed behavior --- test/backend.memory.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/backend.memory.test.js b/test/backend.memory.test.js index 23bea1d9..3c858206 100644 --- a/test/backend.memory.test.js +++ b/test/backend.memory.test.js @@ -74,7 +74,7 @@ test('query string', function () { }); data.query({q: 'UK 6'}).then(function(out) { - equal(out.total, 1); + equal(out.total, 2); // the new regex support will find 2 hits deepEqual(out.hits[0].id, 1); }); }); @@ -234,7 +234,7 @@ test('query string', function () { }); dataset.query({q: 'UK 6'}).then(function() { - equal(dataset.records.length, 1); + equal(dataset.records.length, 2); deepEqual(dataset.records.models[0].id, 1); }); });