null+****@clear*****
null+****@clear*****
2012年 6月 21日 (木) 10:28:13 JST
Yoji SHIDARA 2012-06-21 10:28:13 +0900 (Thu, 21 Jun 2012) New Revision: 3633998b048ef160691d5770b856534ce02397bb https://github.com/groonga/gcs/commit/3633998b048ef160691d5770b856534ce02397bb Log: Add semicolons Modified files: test/domain.test.js Modified: test/domain.test.js (+11 -11) =================================================================== --- test/domain.test.js 2012-06-21 10:22:18 +0900 (4df2cc7) +++ test/domain.test.js 2012-06-21 10:28:13 +0900 (e45c50c) @@ -21,32 +21,32 @@ suite('domain', function() { test('too short', function() { assert.throw(function() { var domain = new Domain('va'); - }, /too short domain name/) + }, /too short domain name/); }); test('too long', function() { assert.throw(function() { var domain = new Domain('abcdefghijklmnopqrstuvwxyz' + '0123456789'); - }, /too long domain name/) + }, /too long domain name/); }); test('hyphen', function() { assert.throw(function() { var domain = new Domain('domain-name'); - }, /"-" cannot appear in a domain name/) + }, /"-" cannot appear in a domain name/); }); test('underscore', function() { assert.throw(function() { var domain = new Domain('domain_name'); - }, /"_" cannot appear in a domain name/) + }, /"_" cannot appear in a domain name/); }); test('upper case', function() { assert.throw(function() { var domain = new Domain('DomainName'); - }, /"D", "N" cannot appear in a domain name/) + }, /"D", "N" cannot appear in a domain name/); }); test('termsTableName', function() { @@ -65,7 +65,7 @@ suite('domain', function() { assert.throw(function() { var request = { query: { DomainName: 'domain_name' } }; var domain = new Domain(request); - }, /cannot appear in a domain name/) + }, /cannot appear in a domain name/); }); }); @@ -82,7 +82,7 @@ suite('domain', function() { var host = 'doc-domain_name-id0123.us-east-1.example.com'; var request = { headers: { host: host } }; var domain = new Domain(request); - }, /cannot appear in a domain name/) + }, /cannot appear in a domain name/); }); }); @@ -148,7 +148,7 @@ suite('domain', function() { test('too short', function() { assert.throw(function() { var field = new IndexField('va', domain); - }, /too short field name/) + }, /too short field name/); }); test('too long', function() { @@ -158,19 +158,19 @@ suite('domain', function() { 'abcdefghijklmnopqrstuvwxyz' + '0123456789'; var field = new IndexField(fieldName, domain); - }, /too long field name/) + }, /too long field name/); }); test('hyphen', function() { assert.throw(function() { var field = new IndexField('field-name', domain); - }, /"-" cannot appear in a field name/) + }, /"-" cannot appear in a field name/); }); test('upper case', function() { assert.throw(function() { var field = new IndexField('FieldName', domain); - }, /"F", "N" cannot appear in a field name/) + }, /"F", "N" cannot appear in a field name/); }); test('indexColumnName', function() { -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B... Download