Skip to content

Commit

Permalink
ci-test
Browse files Browse the repository at this point in the history
  • Loading branch information
sttk committed Aug 6, 2022
1 parent bc04475 commit 70a0736
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"main": "index.js",
"files": [
"index.js"
"index.js",
"lib/"
],
"scripts": {
"lint": "eslint .",
Expand Down
10 changes: 7 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ var expect = require('expect');
var sinon = require('sinon');
var rimraf = require('rimraf');
var through = require('through2');
//var normalizePath = require('normalize-path');

var watch = require('../');

Expand All @@ -22,12 +21,17 @@ describe('glob-watcher', function() {
var outFile1 = path.join(outDir, 'changed.js');
var outFile2 = path.join(outDir, 'added.js');
var globPattern = '**/*.js';
//var outGlob = normalizePath(path.join(outDir, globPattern));
//var singleAdd = normalizePath(path.join(outDir, 'changed.js'));
var outGlob = path.join(outDir, globPattern);
var singleAdd = path.join(outDir, 'changed.js');
var ignoreGlob = '!' + singleAdd;

console.log('outDir', outDir);
console.log('outFile1', outFile1);
console.log('outFile2', outFile2);
console.log('outGlob', outGlob);
console.log('singleAdd', outGlob);
console.log('ignoreGlob', ignoreGlob);

function changeFile() {
fs.writeFileSync(outFile1, 'hello changed');
}
Expand Down

0 comments on commit 70a0736

Please sign in to comment.