Skip to content

Commit

Permalink
remove unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Mar 15, 2022
1 parent 5180f3c commit dcfd92b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
9 changes: 0 additions & 9 deletions src/Logger.spec.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
import { expect } from 'chai';
import { Logger, LogLevel, noop } from './Logger';
import * as moment from 'moment';
import chalk from 'chalk';
import { createSandbox } from 'sinon';
const sinon = createSandbox();

describe('Logger', () => {
let logger: Logger;
const levels = [
'error',
'warn',
'log',
'info',
'debug',
'trace'
];

beforeEach(() => {
logger = new Logger(LogLevel.trace);
Expand Down
6 changes: 2 additions & 4 deletions src/device.spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import * as assert from 'assert';
import * as fsExtra from 'fs-extra';
import * as path from 'path';
import * as rokuDeploy from './index';
import { cwd, expectPathExists, expectThrowsAsync, outDir, rootDir, tempDir, writeFiles } from './testUtils.spec';
import * as dedent from 'dedent';

//these tests are run against an actual roku device. These cannot be enabled when run on the CI server
describe('device', function device() {
let options: rokuDeploy.RokuDeployOptions;
let originalCwd = process.cwd();

beforeEach(() => {
fsExtra.emptyDirSync(tempDir);
Expand Down Expand Up @@ -42,11 +40,11 @@ describe('device', function device() {
port = CreateObject("roMessagePort")
screen.SetMessagePort(port)
screen.Show()
while(true)
msg = wait(0, port)
end while
if screen <> invalid then
screen.Close()
screen = invalid
Expand Down
6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"outDir": "dist",
"declaration": true,
"strict": true,
"noUnusedLocals": true,
"strictNullChecks": false,
"lib": [
"es2015"
Expand All @@ -20,5 +21,8 @@
"include": [
"src/**/*.ts",
"device.spec.ts"
]
],
"ts-node": {
"transpileOnly": true
}
}

0 comments on commit dcfd92b

Please sign in to comment.