cleanup
This commit is contained in:
parent
cfb080f4b7
commit
0ccfa7638f
@ -1,7 +1,7 @@
|
||||
{
|
||||
"targets": [
|
||||
{
|
||||
"target_name": "vcd_parser",
|
||||
"target_name": "vcd",
|
||||
"sources": [
|
||||
"vcd_parser.c",
|
||||
"vcd.c"
|
||||
|
2
index.js
2
index.js
@ -2,7 +2,7 @@
|
||||
|
||||
const pkg = require('./package.json');
|
||||
|
||||
let lib = require('bindings')('vpreproc.node');
|
||||
let lib = require('bindings')('vcd.node');
|
||||
lib.version = pkg.version;
|
||||
|
||||
module.exports = lib;
|
||||
|
@ -22,7 +22,7 @@
|
||||
"homepage": "https://github.com/wavedrom/vcd#readme",
|
||||
"dependencies": {
|
||||
"bindings": "^1.5.0",
|
||||
"llparse": "^6.1.1"
|
||||
"llparse": "^6.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@drom/eslint-config": "^0.10.0",
|
||||
|
19
test/basic.js
Normal file
19
test/basic.js
Normal file
@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
const expect = require('chai').expect;
|
||||
const lib = require('../index.js');
|
||||
|
||||
describe('basic', () => {
|
||||
it('type', done => {
|
||||
expect(lib).to.be.an('object');
|
||||
done();
|
||||
});
|
||||
it('type', done => {
|
||||
const cxt = lib.init();
|
||||
expect(cxt).to.be.an('object');
|
||||
console.log(cxt);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
/* eslint-env mocha */
|
Loading…
x
Reference in New Issue
Block a user