Skip to content

Commit 59930de

Browse files
committed
fixed failed unit test
1 parent 6b0b7b2 commit 59930de

File tree

3 files changed

+105
-71
lines changed

3 files changed

+105
-71
lines changed

package-lock.json

+100-63
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@turf/convex": "^6.0.2",
2222
"@turf/length": "^6.0.2",
2323
"@turf/simplify": "^5.1.5",
24-
"chromedriver": "129.0.0",
24+
"chromedriver": "^131.0.1",
2525
"geojson2svg": "^1.2.3",
2626
"handlebars": "^4.7.7",
2727
"jasmine-ajax": "^4.0.0",

src/test/js/spec/SpeciesViewModelSpec.js

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
UUID = function() {}
2+
UUID.generate = function() {
3+
return "666666";
4+
}
15
describe("SpeciesViewModel Spec", function () {
26
var request, result;
37
it("Can participate in the DataModelItem calls like checkWarnings", function () {
@@ -54,13 +58,6 @@ describe("SpeciesViewModel Spec", function () {
5458
let speciesViewModel = new SpeciesViewModel(oldSpeciesSelectedData, options, {});
5559

5660
speciesViewModel.loadData(newSpeciesSelectedData);
57-
request = jasmine.Ajax.requests.filter('test/getOutputSpeciesIdUrl')[0];
58-
request.respondWith({
59-
status: 200,
60-
responseJSON: responseData
61-
});
62-
63-
expect(request.url).toBe('test/getOutputSpeciesIdUrl');
6461
expect(speciesViewModel.toJS().outputSpeciesId).toEqual(responseData.outputSpeciesId)
6562
expect(speciesViewModel.outputSpeciesId()).not.toEqual(oldSpeciesSelectedData.outputSpeciesId);
6663

0 commit comments

Comments
 (0)