Commit 416756b2 authored by Sigurd Schneider's avatar Sigurd Schneider Committed by Commit Bot

[turbolizer] Add test suite

Bug: v8:7327
Change-Id: Icb9df07963b2fd6686946713d802e12e1d595e95
Reviewed-on: https://chromium-review.googlesource.com/c/1274087Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56566}
parent c4b58ac0
This diff is collapsed.
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
"build": "rollup -c", "build": "rollup -c",
"watch": "tsc --watch", "watch": "tsc --watch",
"deploy": "./deploy.sh", "deploy": "./deploy.sh",
"format": "tsfmt -r" "format": "tsfmt -r",
"test": "ts-mocha -p tsconfig.test.json test/**/*-test.ts"
}, },
"author": "The V8 team", "author": "The V8 team",
"license": "MIT", "license": "MIT",
...@@ -23,6 +24,9 @@ ...@@ -23,6 +24,9 @@
"url": "https://github.com/v8/v8.git" "url": "https://github.com/v8/v8.git"
}, },
"devDependencies": { "devDependencies": {
"chai": "^4.2.0",
"mocha": "^5.2.0",
"ts-mocha": "^2.0.0",
"typescript": "^2.9.1", "typescript": "^2.9.1",
"typescript-formatter": "^7.2.2" "typescript-formatter": "^7.2.2"
} }
......
import {SourceResolver} from '../src/source-resolver';
import {expect} from 'chai';
import {describe, it} from 'mocha';
describe('SourceResolver', () => {
it('should be constructible', () => {
let a:SourceResolver = new SourceResolver();
expect(a.sources.length).to.equal(0);
});
});
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment