[Groonga-commit] nroonga/nroonga at 0b67073 [master] Add null test of error

Back to archive index

abetomo null+****@clear*****
Tue Sep 12 16:59:33 JST 2017


abetomo	2017-09-12 16:59:33 +0900 (Tue, 12 Sep 2017)

  New Revision: 0b670733ae030d44e6bb2f7d402f52d9532033b2
  https://github.com/nroonga/nroonga/commit/0b670733ae030d44e6bb2f7d402f52d9532033b2

  Merged 67eefda: Merge pull request #21 from abetomo/add_null_test_of_error

  Message:
    Add null test of error

  Modified files:
    test/database.test.js

  Modified: test/database.test.js (+1 -1)
===================================================================
--- test/database.test.js    2017-09-12 16:42:03 +0900 (ef205ca)
+++ test/database.test.js    2017-09-12 16:59:33 +0900 (289109d)
@@ -92,7 +92,7 @@ describe('nroonga.Database', () => {
   describe('#command', () => {
     it('should return groonga results', done => {
       db.command('status', (error, data) => {
-        if (error) throw error
+        expect(error).to.be.null
         expect(data).to.have.property('version')
         done()
       })
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20170912/a5c8a1f2/attachment.htm 



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