Skip to content

Commit

Permalink
fixed [issue 700]. Universal path separators for every OS
Browse files Browse the repository at this point in the history
  • Loading branch information
Manosmer committed Mar 16, 2017
1 parent b848323 commit d01fe63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/unit/client/client-test.js
@@ -1,3 +1,4 @@
var path = require('path')
var proxyquire = require('proxyquire').noCallThru().noPreserveCache()
var simple = require('simple-mock')
var test = require('tap').test
Expand Down Expand Up @@ -47,15 +48,15 @@ test('client', function (group) {
client.register(mockServer, optionsMock, simple.stub())
var handlerArgs = createBundleHandlerStub.lastCall.args

t.is(handlerArgs[1], '/example/path/client.js')
t.is(handlerArgs[1], path.sep + path.join('example', 'path', 'client.js'))
t.end()
})

group.test('builds targetPath from folder ".hoodie" by default', function (t) {
client.register(mockServer, {config: {}}, simple.stub())

var handlerArgs = createBundleHandlerStub.lastCall.args
t.is(handlerArgs[1], '.hoodie/client.js')
t.is(handlerArgs[1], path.join('.hoodie', 'client.js'))
t.end()
})

Expand Down

0 comments on commit d01fe63

Please sign in to comment.