Skip to content

Commit

Permalink
SQUASH: Inline one-off version fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
raphinesse committed Oct 9, 2019
1 parent ec5cace commit 1ac1ca0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
8 changes: 5 additions & 3 deletions integration-tests/plugin.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,11 @@ describe('plugin end-to-end', function () {

// Pretend to have cordova-android 5.2.2 installed to force the
// expected version outcome for the plugin below
fs.copySync(
path.join(fixturesDir, 'cordova-android-5.2.2-version.js'),
path.join(project, 'platforms/android/cordova/version')
fs.writeFileSync(
path.join(project, 'platforms/android/cordova/version'),
`#!/usr/bin/env node
exports.version = '5.2.2';
if (!module.parent) console.log(exports.version);`
);

return addPlugin(npmInfoTestPlugin, npmInfoTestPlugin)
Expand Down
9 changes: 0 additions & 9 deletions spec/cordova/fixtures/cordova-android-5.2.2-version.js

This file was deleted.

0 comments on commit 1ac1ca0

Please sign in to comment.