Skip to content

Commit f595f65

Browse files
committed
fix(cordova-build): stub options as object v array
1 parent b51baec commit f595f65

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/tasks/cordova-build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = Task.extend({
77
project: undefined,
88

99
platform: undefined,
10-
cordovaOpts: [],
10+
cordovaOpts: {},
1111
verbose: false,
1212

1313
run: function() {

node-tests/unit/tasks/cordova-build-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('Cordova Build Task', function() {
2020
build.platform = 'ios';
2121
build.run();
2222

23-
td.verify(cdvBuild({platforms: ['ios'], options: [], verbose: false}));
23+
td.verify(cdvBuild({platforms: ['ios'], options: {}, verbose: false}));
2424
});
2525

2626
it('sets platform to android', function() {
@@ -29,6 +29,6 @@ describe('Cordova Build Task', function() {
2929
build.platform = 'android';
3030
build.run();
3131

32-
td.verify(cdvBuild({platforms: ['android'], options: [], verbose: false}));
32+
td.verify(cdvBuild({platforms: ['android'], options: {}, verbose: false}));
3333
});
3434
});

0 commit comments

Comments
 (0)