diff --git a/ckan/public/base/test/index.html b/ckan/public/base/test/index.html index f55e67a249c..1fc8e7eade8 100644 --- a/ckan/public/base/test/index.html +++ b/ckan/public/base/test/index.html @@ -26,8 +26,7 @@ - - + diff --git a/ckan/public/base/test/spec/client.spec.js b/ckan/public/base/test/spec/client.spec.js index 9ed18a49210..c9d90caf81a 100644 --- a/ckan/public/base/test/spec/client.spec.js +++ b/ckan/public/base/test/spec/client.spec.js @@ -154,7 +154,7 @@ describe('ckan.Client()', function () { } }; - var target = this.client.parseCompletions(data); + var target = this.client.parseCompletions(data, {}); assert.deepEqual(target, ["1 percent", "18thc", "19thcentury"]); }); @@ -168,7 +168,7 @@ describe('ckan.Client()', function () { } }; - var target = this.client.parseCompletions(data); + var target = this.client.parseCompletions(data, {}); assert.deepEqual(target, ["json", "csv", "text"]); }); @@ -182,7 +182,7 @@ describe('ckan.Client()', function () { } }; - var target = this.client.parseCompletions(data); + var target = this.client.parseCompletions(data, {}); assert.deepEqual(target, ["Test"]); }); diff --git a/ckan/public/base/test/spec/modules/autocomplete.spec.js b/ckan/public/base/test/spec/modules/autocomplete.spec.js index 82b1c964cd6..2a9c63ab45c 100644 --- a/ckan/public/base/test/spec/modules/autocomplete.spec.js +++ b/ckan/public/base/test/spec/modules/autocomplete.spec.js @@ -146,13 +146,6 @@ describe('ckan.modules.AutocompleteModule()', function () { this.module.getCompletions('term with spaces'); assert.calledWith(this.target, 'http://example.com?term=term%20with%20spaces'); }); - - it('should set the formatter to work with the plugin', function () { - this.module.getCompletions(this.term); - assert.calledWith(this.target, 'http://example.com?term=term', { - format: this.sandbox.client.parseCompletionsForPlugin - }); - }); }); describe('.lookup(term, fn)', function () {