]> git.openstreetmap.org Git - rails.git/commitdiff
Use chai assertion style
authorEmin Kocan <kocanmn.dev@gmail.com>
Sat, 14 Sep 2024 12:39:42 +0000 (14:39 +0200)
committerEmin Kocan <kocanmn.dev@gmail.com>
Sat, 12 Oct 2024 18:50:56 +0000 (20:50 +0200)
test/javascripts/test_helper.js

index f2e89f31292097bdfa86892563216c2c2dd7b61d..8e671017793519cfe2a7bfc5682184e64f076a08 100644 (file)
@@ -2,7 +2,7 @@
 // require support/expect
 // require support/sinon
 //= require support/chai
-// require support/chai-jq-0.0.7
+//= require support/chai-jq-0.0.7
 // require support/your-support-file
 //
 // PhantomJS (Teaspoons default driver) doesn't have support for Function.prototype.bind, which has caused confusion.
@@ -35,6 +35,6 @@
 // If you're using Chai, you'll probably want to initialize your preferred assertion style. You can read more about Chai
 // at: http://chaijs.com/guide/styles
 //
-// window.assert = chai.assert;
+window.assert = chai.assert;
 window.expect = chai.expect;
-// window.should = chai.should();
+window.should = chai.should();