Remove use of deperecated QUnit.raises function

https://github.com/jquery/qunit/commit/6b59e686659249b2efc1411a6b80b937eceaf715