日々精進

新しく学んだことを書き留めていきます

2013-08-09から1日間の記事一覧

should.not.exist(obj)を実行するとTypeError: Object # has no method 'exist'

mochaでテストを書いていて、nullかどうかをassertするのにshould.not.exist(obj)と書いたところ、以下のエラーが出た。 TypeError: Object # has no method 'exist'これはshouldがロードされていないため。下記を実行すると直った。 should = require "shou…