You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2013/07/30 01:36:32 UTC
[12/12] git commit: fix windows8 tests
fix windows8 tests
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/266c74f1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/266c74f1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/266c74f1
Branch: refs/heads/master
Commit: 266c74f16524e0a935e3e31c48ed003948cfbc3f
Parents: eb53163
Author: purplecabbage <pu...@gmail.com>
Authored: Mon Jul 29 16:19:45 2013 -0700
Committer: purplecabbage <pu...@gmail.com>
Committed: Mon Jul 29 16:34:11 2013 -0700
----------------------------------------------------------------------
spec/platforms/windows8.spec.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/266c74f1/spec/platforms/windows8.spec.js
----------------------------------------------------------------------
diff --git a/spec/platforms/windows8.spec.js b/spec/platforms/windows8.spec.js
index 8a61570..e1ca2cb 100644
--- a/spec/platforms/windows8.spec.js
+++ b/spec/platforms/windows8.spec.js
@@ -90,7 +90,7 @@ describe('windows8 project handler', function() {
var source = copyArray(valid_source);
var s = spyOn(common, 'copyFile');
windows8['source-file'].install(source[0], dummyplugin, temp, dummy_id, proj_files);
- expect(s).toHaveBeenCalledWith(dummyplugin, 'src/windows8/dummer.js', temp, path.join('Plugins', 'com.phonegap.plugins.dummyplugin', 'dummer.js'));
+ expect(s).toHaveBeenCalledWith(dummyplugin, 'src/windows8/dummer.js', temp, path.join('www', 'plugins', 'com.phonegap.plugins.dummyplugin', 'dummer.js'));
});
it('should throw if source-file src cannot be found', function() {
var source = copyArray(invalid_source);
@@ -100,7 +100,7 @@ describe('windows8 project handler', function() {
});
it('should throw if source-file target already exists', function() {
var source = copyArray(valid_source);
- var target = path.join(temp, 'Plugins', dummy_id, 'dummer.js');
+ var target = path.join(temp, 'www', 'plugins', dummy_id, 'dummer.js');
shell.mkdir('-p', path.dirname(target));
fs.writeFileSync(target, 'some bs', 'utf-8');
expect(function() {
@@ -125,7 +125,7 @@ describe('windows8 project handler', function() {
install('windows8', temp, dummyplugin, plugins_dir, {}, function() {
var source = copyArray(valid_source);
windows8['source-file'].uninstall(source[0], temp, dummy_id, proj_files);
- expect(s).toHaveBeenCalledWith(temp, path.join('Plugins', 'com.phonegap.plugins.dummyplugin', 'dummer.js'));
+ expect(s).toHaveBeenCalledWith(temp, path.join('www', 'plugins', 'com.phonegap.plugins.dummyplugin', 'dummer.js'));
done();
});
});