Skip to content

Commit

Permalink
update test/watcher.js to reflect new AvaFiles Api
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestalmage committed Jun 6, 2016
1 parent 2286786 commit d9e96ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/watcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,8 @@ group('chokidar is installed', function (beforeEach, test, group) {
test('initial exclude patterns override whether something is a test file', function (t) {
t.plan(2);

avaFiles = function (files, sources) {
var ret = new AvaFiles(files, sources);
avaFiles = function (options) {
var ret = new AvaFiles(options);
// Note: There is no way for users to actually set exclude patterns yet.
// This test just validates that internal updates to the default excludes pattern will be obeyed.
ret.excludePatterns = ['!*bar*'];
Expand Down Expand Up @@ -632,8 +632,8 @@ group('chokidar is installed', function (beforeEach, test, group) {
test('exclude patterns override directory matches', function (t) {
t.plan(2);

avaFiles = function (files, sources) {
var ret = new AvaFiles(files, sources);
avaFiles = function (options) {
var ret = new AvaFiles(options);
// Note: There is no way for users to actually set exclude patterns yet.
// This test just validates that internal updates to the default excludes pattern will be obeyed.
ret.excludePatterns = ['!**/exclude/**'];
Expand Down

0 comments on commit d9e96ee

Please sign in to comment.