Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Make the linting cover all the typscript files (#2524)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartgrigg authored and ramya-rao-a committed Jun 5, 2019
1 parent f722e2d commit 4011ba3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "node ./node_modules/vscode/bin/test",
"lint": "node ./node_modules/tslint/bin/tslint ./src/*.ts ./src/debugAdapter/*.ts ./test/*.ts",
"fix-lint": "node ./node_modules/tslint/bin/tslint --fix ./src/*.ts ./src/debugAdapter/*.ts ./test/*.ts",
"lint": "node ./node_modules/tslint/bin/tslint --project tsconfig.json",
"fix-lint": "node ./node_modules/tslint/bin/tslint --fix --project tsconfig.json",
"unit-test": "node ./node_modules/mocha/bin/_mocha -u tdd --timeout 5000 --colors ./out/test/unit"
},
"extensionDependencies": [],
Expand Down
12 changes: 6 additions & 6 deletions test/unit/NNDict.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { Node, NearestNeighborDict } from '../../src/avlTree';

suite('NearestNeighborDict Tests', () => {
test('basic insert/get: random', () => {
let dict = new NearestNeighborDict(new Node(0, 0), NearestNeighborDict.NUMERIC_DISTANCE_FUNCTION);
let entries = [5, 2, 9, 23, 3, 0, 1, -4, -2];
const dict = new NearestNeighborDict(new Node(0, 0), NearestNeighborDict.NUMERIC_DISTANCE_FUNCTION);
const entries = [5, 2, 9, 23, 3, 0, 1, -4, -2];
entries.forEach(x => dict.insert(x));
assert(dict.height() < 4);

Expand All @@ -23,8 +23,8 @@ suite('NearestNeighborDict Tests', () => {
});

test('basic insert/get: increasing', () => {
let dict = new NearestNeighborDict(new Node(0, 0), NearestNeighborDict.NUMERIC_DISTANCE_FUNCTION);
let entries = [-10, -5, -4, -1, 0, 1, 5, 10, 23];
const dict = new NearestNeighborDict(new Node(0, 0), NearestNeighborDict.NUMERIC_DISTANCE_FUNCTION);
const entries = [-10, -5, -4, -1, 0, 1, 5, 10, 23];
entries.forEach(x => dict.insert(x));
assert(dict.height() < 4);

Expand All @@ -38,8 +38,8 @@ suite('NearestNeighborDict Tests', () => {
});

test('basic insert/get: decreasing', () => {
let dict = new NearestNeighborDict(new Node(0, 0), NearestNeighborDict.NUMERIC_DISTANCE_FUNCTION);
let entries = [-10, -5, -4, -1, 0, 1, 5, 10, 23].reverse();
const dict = new NearestNeighborDict(new Node(0, 0), NearestNeighborDict.NUMERIC_DISTANCE_FUNCTION);
const entries = [-10, -5, -4, -1, 0, 1, 5, 10, 23].reverse();
entries.forEach(x => dict.insert(x));
assert(dict.height() < 4);

Expand Down

0 comments on commit 4011ba3

Please sign in to comment.