From 5166abd75f4c217bf5d86548f17214837cf55863 Mon Sep 17 00:00:00 2001 From: Wojciech Zawistowski Date: Thu, 23 Jan 2014 20:31:33 +0100 Subject: [PATCH] Adds new QUnit assertion ("not") complementary to built-in "ok" --- .jshintrc | 1 + test/javascripts/helpers/assertions.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.jshintrc b/.jshintrc index 19f81f75a..3caecd3fb 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 19cb2e648..533a6b9dc 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); +}