null+****@clear*****
null+****@clear*****
2012年 8月 2日 (木) 16:27:16 JST
SHIMODA Hiroshi 2012-08-02 16:27:16 +0900 (Thu, 02 Aug 2012) New Revision: f4ca9b5c5c342ff997835a12819609f9621d8647 https://github.com/groonga/gcs/commit/f4ca9b5c5c342ff997835a12819609f9621d8647 Log: Update test for search domain detection about DomainName option Modified files: test/database-domain.test.js Modified: test/database-domain.test.js (+4 -10) =================================================================== --- test/database-domain.test.js 2012-08-02 16:24:23 +0900 (265b27d) +++ test/database-domain.test.js 2012-08-02 16:27:16 +0900 (9ba6d92) @@ -71,17 +71,11 @@ suite('database', function() { }); suite('from query parameter', function() { - test('valid', function() { - var request = { query: { DomainName: 'test0123' } }; - var domain = new Domain(request); - assert.equal(domain.name, 'test0123'); - }); - - test('invalid', function() { + test('not supported', function() { assert.throw(function() { - var request = { query: { DomainName: 'domain_name' } }; + var request = { query: { DomainName: 'test0123' } }; var domain = new Domain(request); - }, /cannot appear in a domain name/); + }, /no domain name/); }); }); @@ -193,7 +187,7 @@ suite('database', function() { url: '/gcs/test4567-id4567', query: { DomainName: 'test890' } }; var domain = new Domain(request); - assert.equal(domain.name, 'test890'); + assert.equal(domain.name, 'test0123'); }); }); -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B... Download