chore(ci): add Node.js v12 to azure-pipelines

This commit is contained in:
Yuta Hiroto 2019-05-09 21:16:19 +01:00
parent 8632f1ed8d
commit 6033db679f
No known key found for this signature in database
GPG Key ID: E03998F3E2B165C2
2 changed files with 14 additions and 6 deletions

View File

@ -90,8 +90,10 @@ jobs:
pool:
vmImage: ubuntu-16.04
strategy:
maxParallel: 3
maxParallel: 4
matrix:
node-12:
node_version: ^12.2.0
node-10:
node_version: ^10.10.0
node-8:
@ -139,8 +141,10 @@ jobs:
pool:
vmImage: "macOS 10.13"
strategy:
maxParallel: 3
maxParallel: 4
matrix:
node-12:
node_version: ^12.2.0
node-10:
node_version: ^10.10.0
node-8:
@ -188,8 +192,10 @@ jobs:
pool:
vmImage: vs2017-win2016
strategy:
maxParallel: 3
maxParallel: 4
matrix:
node-12:
node_version: ^12.2.0
node-10:
node_version: ^10.10.0
node-8:

View File

@ -1,8 +1,10 @@
import value, { exception } from "./module";
it("should have a TDZ for exported const values", function() {
expect((typeof exception)).toBe("object");
it("should have a TDZ for exported const values", () => {
expect(typeof exception).toBe("object");
expect(exception).toBeInstanceOf(Error);
expect(exception.message).toMatch(/ is not defined$/);
expect(exception.message).toMatch(
/ is not defined$|^Cannot access '.+?' before initialization$/
);
expect(value).toBe("value");
});