Skip to content

Commit

Permalink
test: check file header
Browse files Browse the repository at this point in the history
  • Loading branch information
uetchy committed Aug 20, 2016
1 parent 9233bcd commit 201392b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Binary file removed test/fixtures/app.icns
Binary file not shown.
3 changes: 1 addition & 2 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ test.cb('should throw error', t => {

test.cb('should create icns', t => {
const icnsName = 'custom.icns'
const expected = fs.readFileSync(join(__dirname, '/fixtures/app.icns'))

iconFiles()
.pipe(iconutil(icnsName))
.pipe(streamAssert.first(data => {
t.is(data.contents.toString(), expected.toString())
t.true(String(data.contents).indexOf('icns\u0000\u0000') > -1)
t.is(data.relative, icnsName)
}))
.pipe(streamAssert.end(t.end))
Expand Down

0 comments on commit 201392b

Please sign in to comment.