0
這是我的QUnit測試:運行時使用的ReSharper Qunit測試中,它無法解析命名空間
/// <reference path="~/Scripts/global.js" />
module("Global.js");
test("Test getParameterFromQueryStringByName", function() {
expect(1);
equals("exist", jwd.global.getParameterFromQueryStringByName("xyz.com/web?querystring1=exist", "querystring1"), "Search Valid name from one parameter");
});
這裏jwd.global
是另一個JavaScript文件global.js
定義的命名空間。當我通過點擊某個URL從瀏覽器運行測試時,它工作正常,但是當我使用ReSharper運行相同的測試時,它給我提供了錯誤jwd is not defined - { "fileName": "http://localhost:49824/Tests.js", "lineNumber": 8 }
。
如何確保在使用ReSharper運行qunit測試時可以找到jwd
命名空間?