diff --git a/package.json b/package.json index d38464b..09e1cc3 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "dev": "nodemon -w src --exec \"babel-node src\"", "build": "npx babel src -d dist", "start": "node dist", - "lint": "standard \"src/**/*.js\"", + "lint": "standard \"src/**/*.js\" \"test/**/*/js\"", "test-watch": "ava --watch", "test": "ava --verbose" }, diff --git a/test/internals.js b/test/internals.js index 9ac706e..62ea6db 100644 --- a/test/internals.js +++ b/test/internals.js @@ -17,19 +17,19 @@ test('defaultBlueprint exports', t => { const expected = { name: null, id: null, - dialects: ["rest"], + dialects: ['rest'], routes: {} } t.deepEqual(expected, defaultBlueprint) }) test('byColumn blueprinter generates expected output', t => { - const actual = byColumn("eg ColumnBlueprint", "egSourceName", "egSourceId", egInput1) + const actual = byColumn('eg ColumnBlueprint', 'egSourceName', 'egSourceId', egInput1) const expected = R.clone(defaultBlueprint) - expected.name = "eg ColumnBlueprint" + expected.name = 'eg ColumnBlueprint' expected.source = { - id: "egSourceId", - name: "egSourceName" + id: 'egSourceId', + name: 'egSourceName' } expected.routes['h1'] = R.clone(defaultRoute) expected.routes['h1'].data = [1, 4] @@ -41,24 +41,23 @@ test('byColumn blueprinter generates expected output', t => { }) test('byRow blueprinter generates expected output', t => { - const actual = byRow("egRowBlueprint", "egSourceName", "egSourceId", egInput1, "items", ) + const actual = byRow('egRowBlueprint', 'egSourceName', 'egSourceId', egInput1, 'items') const expected = R.clone(defaultBlueprint) - expected.name = "egRowBlueprint" + expected.name = 'egRowBlueprint' expected.source = { - id: "egSourceId", - name: "egSourceName" + id: 'egSourceId', + name: 'egSourceName' } expected.routes['items'] = R.clone(defaultRoute) expected.routes['items'].data = [{ - h1: 1, - h2: 2, - h3: 3 - }, - { - h1: 4, - h2: 5, - h3: 6 - }, - ] + h1: 1, + h2: 2, + h3: 3 + }, + { + h1: 4, + h2: 5, + h3: 6 + }] t.deepEqual(expected, actual) })