From: Emin Kocan Date: Sat, 14 Sep 2024 12:39:42 +0000 (+0200) Subject: Use chai assertion style X-Git-Tag: live~134^2~3 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/5c7b7383e71380d4189385c6d05430649e0e7496 Use chai assertion style --- diff --git a/test/javascripts/test_helper.js b/test/javascripts/test_helper.js index f2e89f312..8e6710177 100644 --- a/test/javascripts/test_helper.js +++ b/test/javascripts/test_helper.js @@ -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();