Skip to content
This repository has been archived by the owner on Mar 1, 2021. It is now read-only.

Commit

Permalink
Test folders have changed a bit. Account for that, eh?
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Williams committed Jun 20, 2016
1 parent 8bb8e40 commit b89b480
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/lib/loader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,31 +87,31 @@ describe('microboot/lib/loader', function () {
var files = loader.lookup('test/data/fake')

expect(files).to.be.an('array')
expect(files).to.have.lengthOf(1)
expect(files).to.have.lengthOf(2)
expect(files).to.not.contain('test/data/fake/.hidden.js')
})

it('should not return files that don\'t have the ".js" extension', function () {
var files = loader.lookup('test/data/fake')

expect(files).to.be.an('array')
expect(files).to.have.lengthOf(1)
expect(files).to.have.lengthOf(2)
expect(files).to.not.contain('test/data/fake/test.jpg')
})

it('should remove hidden files when searching an extensionless path', function () {
var files = loader.lookup('test/data/fake/**')

expect(files).to.be.an('array')
expect(files).to.have.lengthOf(1)
expect(files).to.have.lengthOf(2)
expect(files).to.not.contain('test/data/fake/.hidden.js')
})

it('should remove non-.js files when searching an extensionless path', function () {
var files = loader.lookup('test/data/fake/**')

expect(files).to.be.an('array')
expect(files).to.have.lengthOf(1)
expect(files).to.have.lengthOf(2)
expect(files).to.not.contain('test/data/fake/test.jpg')
})

Expand Down

0 comments on commit b89b480

Please sign in to comment.