lint clean

This commit is contained in:
Aliaksei Chapyzhenka 2020-09-29 13:22:40 -07:00
parent 2e38b9a97b
commit 6ae6413d0f
7 changed files with 16 additions and 18 deletions

View File

@ -4,7 +4,7 @@
"description": "Value Change Dump (VCD) parser",
"main": "lib/index.js",
"scripts": {
"test": "eslint bin lib && nyc -r=text -r=lcov mocha",
"test": "eslint bin lib test && nyc -r=text -r=lcov mocha",
"testonly": "nyc -r=text -r=lcov mocha",
"watch": "mocha --watch",
"install": "node bin/build.js",
@ -48,6 +48,7 @@
"nyc": "^15.1.0"
},
"eslintConfig": {
"extends": "@drom/eslint-config/eslint4/node8"
"extends": "@drom/eslint-config/eslint4/node8",
"parserOptions": { "ecmaVersion": 2020 }
}
}

File diff suppressed because one or more lines are too long

View File

@ -60,7 +60,7 @@ $timescale 1ns $end
$enddefinitions $end
`
)).to.eq(true);
)).to.eq(true);
expect(inst.write(`
@ -78,7 +78,7 @@ b0000000011110000 {u
#303
b0000000000001111 {u
`
)).to.eq(true);
)).to.eq(true);
expect(inst.info).to.deep.eq({
status: 'simulation',

View File

@ -44,8 +44,8 @@ describe('dump', () => {
{ id: '{u', time: 313, cmd: 19, value: 0x0000000000000f00n, mask: 0n },
{ id: '{u', time: 314, cmd: 19, value: 0x00000000000000f0n, mask: 0n },
{ id: '{u', time: 315, cmd: 19, value: 0x000000000000000fn, mask: 0n },
{ id: '"}G', time: 316, cmd: 15, value: 1n, mask: 0n },
])
{ id: '"}G', time: 316, cmd: 15, value: 1n, mask: 0n }
]);
// console.log(dump);
done();
});

File diff suppressed because one or more lines are too long

View File

@ -58,7 +58,7 @@ $timescale 1ns $end
$enddefinitions $end
`
)).to.eq(true);
)).to.eq(true);
expect(inst.write(`
@ -76,7 +76,7 @@ b0000000011110000 {u
#303
b0000000000001111 {u
`
)).to.eq(true);
)).to.eq(true);
expect(inst.info).to.deep.eq({
status: 'simulation',

View File

@ -54,9 +54,8 @@ describe('wasm dump', () => {
{ id: '{u', time: 313, cmd: 19, value: 0x0000000000000f00n, mask: 0n },
{ id: '{u', time: 314, cmd: 19, value: 0x00000000000000f0n, mask: 0n },
{ id: '{u', time: 315, cmd: 19, value: 0x000000000000000fn, mask: 0n },
{ id: '"}G', time: 316, cmd: 15, value: 1n, mask: 0n },
])
// console.log(dump);
{ id: '"}G', time: 316, cmd: 15, value: 1n, mask: 0n }
]);
done();
});
@ -83,7 +82,7 @@ $timescale 1ns $end
1"}G
bzzzzxxxx11110000ZZZZXXXX11110000zzzzxxx`);
// break in the middle of the number scan
// break in the middle of the number scan
inst.write( `x11110000zzzzxxxx11110000 {u
#300