diff --git a/.jshintrc b/.jshintrc index 19f81f75a06..3caecd3fb96 100644 --- a/.jshintrc +++ b/.jshintrc @@ -14,6 +14,7 @@ "integration", "test", "ok", + "not", "expect", "equal", "blank", diff --git a/test/javascripts/helpers/assertions.js b/test/javascripts/helpers/assertions.js index 19cb2e64875..533a6b9dcb2 100644 --- a/test/javascripts/helpers/assertions.js +++ b/test/javascripts/helpers/assertions.js @@ -17,4 +17,8 @@ function blank(obj, text) { function containsInstance(collection, klass, text) { ok(klass.detectInstance(_.first(collection)), text); -} \ No newline at end of file +} + +function not(state, message) { + ok(!state, message); +}