QUnit test using Knockout

I'm having problems getting some QUnit tests to work correctly with the ReSharper test runner. The problem is that it's not loading knockout into the browser when it runs the tests. We have the following lines at the top of the js file that contains the QUnit tests:

/// <reference path="http://code.jquery.com/qunit/qunit-1.14.0.js" />
/// <reference path="http://ajax.aspnetcdn.com/ajax/knockout/knockout-3.1.0.js" />

But when I look at the source in the browser window that the ReSharper test runner opens, I see that it's imported the qunit.js file, but it hasn't imported knockout.

Any ideas?

  -- John

1 comment
Comment actions Permalink

Hello John,

  Could you please try placing "/// <reference path="http://code.jquery.com/qunit/qunit-1.14.0.js" />" after "/// <reference path="http://ajax.aspnetcdn.com/ajax/knockout/knockout-3.1.0.js" />" to be the last reference?



Please sign in to leave a comment.