Skip to content

Commit

Permalink
fix ionic-team#32 test failures on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-g committed Feb 17, 2016
1 parent 0d24e15 commit 4ac7d23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions spec/serve.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
var Q = require('q'),
events = require('../lib/events'),
helpers = require('./helpers')
helpers = require('./helpers'),
Project = require('../lib/project'),
path = require('path'),
rewire = require('rewire'),
logging = require('../lib/logging');

Expand All @@ -12,7 +13,7 @@ var defaultServeOptions = {
appDirectory: '/ionic/app',
browser: undefined,
browserOption: '',
contentSrc: 'www/index.html',
contentSrc: path.normalize('www/index.html'),
createDocumentRoot: null,
defaultBrowser: undefined,
documentRoot: 'www',
Expand Down
2 changes: 1 addition & 1 deletion spec/state.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('State', function() {
it('should get the package json by app directory', function() {
spyOn(State, 'readInPackageJson').andReturn({});
var packageJson = State.getPackageJson(tempDirectory);
expect(State.readInPackageJson).toHaveBeenCalledWith('/test/dev/ionic/package.json');
expect(State.readInPackageJson).toHaveBeenCalledWith(path.normalize('/test/dev/ionic/package.json'));
expect(packageJson.cordovaPlugins.length).toBe([].length);
expect(packageJson.cordovaPlatforms.length).toBe([].length);
});
Expand Down

0 comments on commit 4ac7d23

Please sign in to comment.