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

Clean up unit tests that wait for a promise #14550

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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