Skip to content

Commit bf3e8bc

Browse files
author
whyboris
committed
testing works again 🐝
1 parent db940ba commit bf3e8bc

4 files changed

Lines changed: 5 additions & 13 deletions

File tree

src/cli.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@ const utils = require('./utils.js').Utils;
2020
const ncp = require('copy-paste');
2121
const opn = require('opn');
2222

23-
24-
// function Diff2HtmlInterface() {
25-
// }
26-
27-
/*
28-
* Input
29-
*/
30-
3123
module.exports = {
3224

3325
getInput(inputType: InputType, inputArgs: any[], ignore: string[], callback) {

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ var argv = yargs.usage('Usage: diff2html [options] -- [diff args]')
152152
.example('diff2html -i file -- my-file-diff.diff', 'reading the input from a file')
153153
.example('diff2html -f json -o stdout -- -M HEAD~1', 'print json format to stdout')
154154
.example('diff2html -F my-pretty-diff.html -- -M HEAD~1', 'print to file')
155-
.example('diff2html --ig -- package-lock.json --ig yarn.lock',
155+
.example('diff2html --ig package-lock.json --ig yarn.lock',
156156
'ignore two particular files when generating the diff')
157157
.help('h')
158158
.alias('v', 'version')

test/cli-tests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ var assert = require('assert');
22

33
var sinon = require('sinon');
44

5-
var Cli = require('../src/cli.js').Diff2HtmlInterface;
6-
var http = require('../src/http-utils.js').HttpUtils;
7-
var Utils = require('../src/utils.js').Utils;
5+
var Cli = require('../built/cli.js');
6+
var http = require('../built/http-utils.js').HttpUtils;
7+
var Utils = require('../built/utils.js').Utils;
88

99
describe('Cli', function() {
1010
describe('getInput', function() {

test/utils-tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var assert = require('assert');
22

3-
var Utils = require('../src/utils.js').Utils;
3+
var Utils = require('../built/utils.js').Utils;
44

55
describe('Utils', function() {
66
describe('IO', function() {

0 commit comments

Comments
 (0)