summaryrefslogtreecommitdiff
path: root/node_modules/jake/test/integration/publish_task.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-11-28 17:14:38 +0100
committerMinteck <contact@minteck.org>2022-11-28 17:14:38 +0100
commit18efd30a263ec0d79a26a82cbd8c90c9f81056b7 (patch)
treeaea01bf3506dda706719fc68eb37b77ed9ef3fe8 /node_modules/jake/test/integration/publish_task.js
downloadautoreport-mane.tar.gz
autoreport-mane.tar.bz2
autoreport-mane.zip
Open sourceHEADmane
Diffstat (limited to 'node_modules/jake/test/integration/publish_task.js')
-rw-r--r--node_modules/jake/test/integration/publish_task.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/node_modules/jake/test/integration/publish_task.js b/node_modules/jake/test/integration/publish_task.js
new file mode 100644
index 0000000..a941b30
--- /dev/null
+++ b/node_modules/jake/test/integration/publish_task.js
@@ -0,0 +1,27 @@
+let assert = require('assert');
+let exec = require('child_process').execSync;
+
+const PROJECT_DIR = process.env.PROJECT_DIR;
+const JAKE_CMD = `${PROJECT_DIR}/bin/cli.js`;
+
+suite('publishTask', function () {
+
+ this.timeout(7000);
+
+ test('default task', function () {
+ let out = exec(`${JAKE_CMD} -q publish`).toString().trim();
+ let expected = [
+ 'Fetched remote tags.'
+ , 'On branch v0.0'
+ , 'Bumped version number to v0.0.2.'
+ , 'Created package for zerb v0.0.2'
+ , 'Publishing zerb v0.0.2'
+ , './pkg/zerb-v0.0.2.tar.gz'
+ , 'BOOM! Published.'
+ , 'Cleaned up package'
+ ].join('\n');
+ assert.equal(expected, out);
+ });
+
+});
+