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", "description": "Value Change Dump (VCD) parser",
"main": "lib/index.js", "main": "lib/index.js",
"scripts": { "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", "testonly": "nyc -r=text -r=lcov mocha",
"watch": "mocha --watch", "watch": "mocha --watch",
"install": "node bin/build.js", "install": "node bin/build.js",
@ -48,6 +48,7 @@
"nyc": "^15.1.0" "nyc": "^15.1.0"
}, },
"eslintConfig": { "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 $enddefinitions $end
` `
)).to.eq(true); )).to.eq(true);
expect(inst.write(` expect(inst.write(`
@ -78,7 +78,7 @@ b0000000011110000 {u
#303 #303
b0000000000001111 {u b0000000000001111 {u
` `
)).to.eq(true); )).to.eq(true);
expect(inst.info).to.deep.eq({ expect(inst.info).to.deep.eq({
status: 'simulation', status: 'simulation',

View File

@ -44,8 +44,8 @@ describe('dump', () => {
{ id: '{u', time: 313, cmd: 19, value: 0x0000000000000f00n, mask: 0n }, { id: '{u', time: 313, cmd: 19, value: 0x0000000000000f00n, mask: 0n },
{ id: '{u', time: 314, cmd: 19, value: 0x00000000000000f0n, mask: 0n }, { id: '{u', time: 314, cmd: 19, value: 0x00000000000000f0n, mask: 0n },
{ id: '{u', time: 315, cmd: 19, value: 0x000000000000000fn, 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); // console.log(dump);
done(); done();
}); });

File diff suppressed because one or more lines are too long

View File

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

View File

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