Skip to content

Commit

Permalink
Clean up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTup committed Apr 9, 2019
1 parent 835d887 commit 0415f93
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ describe("dart_implementation_provider", () => {
return definitionResults || [];
}

// tslint:disable-next-line:only-arrow-functions
it("does not return anything for blank areas of the document", async () => {
const impls = await getImplementationsAt("\n^\n");
assert.equal(impls.length, 0, "Unexpected results: " + JSON.stringify(impls, undefined, 4));
Expand Down
2 changes: 1 addition & 1 deletion test/flutter_only/debug/flutter_run.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ describe("flutter run debugger (launch)", () => {
});
});

describe("can evaluate at breakpoint", function () { // tslint:disable-line:only-arrow-functions
describe("can evaluate at breakpoint", () => {
it("simple expressions", async () => {
await openFile(flutterHelloWorldMainFile);
const config = await startDebugger(flutterHelloWorldMainFile);
Expand Down
4 changes: 2 additions & 2 deletions test/flutter_web_only/debug/flutter_web.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ describe("flutter web debugger", () => {
});
});

describe("can evaluate at breakpoint", function () { // tslint:disable-line:only-arrow-functions
it("simple expressions", async () => {
describe("can evaluate at breakpoint", () => {
it("simple expressions", async function () {
await openFile(flutterWebHelloWorldMainFile);
const config = await startDebugger(flutterWebHelloWorldMainFile);
await Promise.all([
Expand Down
3 changes: 1 addition & 2 deletions test/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ beforeEach("set logger", async function () {
});

export let sb: sinon.SinonSandbox;
beforeEach("create sinon sandbox", function () { sb = sinon.createSandbox(); }); // tslint:disable-line:only-arrow-functions
beforeEach("create sinon sandbox", () => { sb = sinon.createSandbox(); });
afterEach("destroy sinon sandbox", () => sb.restore());
afterEach("make empty file empty", () => fs.writeFileSync(fsPath(emptyFile), ""));

Expand All @@ -261,7 +261,6 @@ before("throw if DART_CODE_IS_TEST_RUN is not set", () => {

const deferredItems: Array<(result?: "failed" | "passed") => Promise<any> | any> = [];
const deferredToLastItems: Array<(result?: "failed" | "passed") => Promise<any> | any> = [];
// tslint:disable-next-line:only-arrow-functions
afterEach("run deferred functions", async function () {
let firstError: any;
for (const d of [...deferredItems.reverse(), ...deferredToLastItems.reverse()]) {
Expand Down

0 comments on commit 0415f93

Please sign in to comment.