From c2c86bef86cbdf81c4373ffd1de80bb5d5672579 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Sat, 8 Oct 2016 09:42:14 +0200 Subject: [PATCH] tsfmt - extensions/vscode-colorize-tests --- .../vscode-colorize-tests/src/colorizer.test.ts | 8 ++++---- extensions/vscode-colorize-tests/src/index.ts | 2 +- extensions/vscode-colorize-tests/typings/mocha.d.ts | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/extensions/vscode-colorize-tests/src/colorizer.test.ts b/extensions/vscode-colorize-tests/src/colorizer.test.ts index b827742e6a6..d709300a839 100644 --- a/extensions/vscode-colorize-tests/src/colorizer.test.ts +++ b/extensions/vscode-colorize-tests/src/colorizer.test.ts @@ -6,11 +6,11 @@ 'use strict'; import * as assert from 'assert'; -import {commands, Uri} from 'vscode'; -import {join, basename, normalize, dirname} from 'path'; +import { commands, Uri } from 'vscode'; +import { join, basename, normalize, dirname } from 'path'; import * as fs from 'fs'; -function assertUnchangedTokens(testFixurePath:string, done) { +function assertUnchangedTokens(testFixurePath: string, done) { let fileName = basename(testFixurePath); return commands.executeCommand('_workbench.captureSyntaxTokens', Uri.file(testFixurePath)).then(data => { @@ -47,7 +47,7 @@ suite("colorization", () => { let fixturesFiles = fs.readdirSync(extensionColorizeFixturePath); fixturesFiles.forEach(fixturesFile => { // define a test for each fixture - test(extension + '-' + fixturesFile, function(done) { + test(extension + '-' + fixturesFile, function (done) { assertUnchangedTokens(join(extensionColorizeFixturePath, fixturesFile), done); }); }); diff --git a/extensions/vscode-colorize-tests/src/index.ts b/extensions/vscode-colorize-tests/src/index.ts index 9147c171546..984d15dafc5 100644 --- a/extensions/vscode-colorize-tests/src/index.ts +++ b/extensions/vscode-colorize-tests/src/index.ts @@ -25,4 +25,4 @@ testRunner.configure({ timeout: 10000 }); -export= testRunner; \ No newline at end of file +export = testRunner; \ No newline at end of file diff --git a/extensions/vscode-colorize-tests/typings/mocha.d.ts b/extensions/vscode-colorize-tests/typings/mocha.d.ts index 7b23f5d1816..f677473dcdd 100644 --- a/extensions/vscode-colorize-tests/typings/mocha.d.ts +++ b/extensions/vscode-colorize-tests/typings/mocha.d.ts @@ -5,9 +5,9 @@ declare function run(): void; -declare function suite(name: string, fn: (err?)=>void); -declare function test(name: string, fn: (done?: (err?)=>void)=>void); -declare function suiteSetup(fn: (done?: (err?)=>void)=>void); -declare function suiteTeardown(fn: (done?: (err?)=>void)=>void); -declare function setup(fn: (done?: (err?)=>void)=>void); -declare function teardown(fn: (done?: (err?)=>void)=>void); +declare function suite(name: string, fn: (err?) => void); +declare function test(name: string, fn: (done?: (err?) => void) => void); +declare function suiteSetup(fn: (done?: (err?) => void) => void); +declare function suiteTeardown(fn: (done?: (err?) => void) => void); +declare function setup(fn: (done?: (err?) => void) => void); +declare function teardown(fn: (done?: (err?) => void) => void);