Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Clean up unit tests that wait for a promise
Browse files Browse the repository at this point in the history
  • Loading branch information
HaraldNordgren committed Sep 30, 2018
1 parent 8f5be98 commit d9d2439
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/spec/JSUtils-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,8 @@ define(function (require, exports, module) {

it("should return correct start and end line numbers for es6 class definitions and methods", function () {
runs(function () {
doneLoading = false;
init(this, es6ClassesFileEntry);
waitsForDone(init(this, es6ClassesFileEntry));
});
waitsFor(function () { return doneLoading; }, 1000);

runs(function () {
expectFunctionRanges(this, this.fileJsContent, "Shape", [ {start: 0, end: 9} ]);
Expand Down

0 comments on commit d9d2439

Please sign in to comment.