[Groonga-commit] groonga/express-kotoumi [master] Add tests for validation around tableName

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Jan 16 15:59:08 JST 2013


YUKI Hiroshi	2013-01-16 15:59:08 +0900 (Wed, 16 Jan 2013)

  New Revision: ef295026e86f046274f77ad73771144fb5f3e9e2
  https://github.com/groonga/express-kotoumi/commit/ef295026e86f046274f77ad73771144fb5f3e9e2

  Log:
    Add tests for validation around tableName

  Modified files:
    test/builders-rest-request.test.js

  Modified: test/builders-rest-request.test.js (+4 -0)
===================================================================
--- test/builders-rest-request.test.js    2013-01-16 15:57:21 +0900 (484a207)
+++ test/builders-rest-request.test.js    2013-01-16 15:59:08 +0900 (aad9512)
@@ -83,6 +83,10 @@ suite('building message from REST API request', function() {
 
       var baseParams = { tableName: 'test' };
 
+      testSuccessFor('tableName', 'foobar');
+      testFailFor('', '', null, 'no source');
+      testFailFor('tableName', '', null, 'no source');
+
       testSuccessFor('limit', '0', baseParams);
       testSuccessFor('limit', '10', baseParams);
       testSuccessFor('limit', '-10', baseParams);
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index