chore(ci): add Node.js v12 to azure-pipelines
This commit is contained in:
parent
8632f1ed8d
commit
6033db679f
|
@ -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:
|
||||
|
|
|
@ -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");
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue