aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGirish Ramakrishnan <girish@forwardbias.in>2015-11-27 16:13:53 -0800
committerGirish Ramakrishnan <girish@forwardbias.in>2015-11-27 16:13:53 -0800
commit052333b5c06a749d12cae384f04d8d1e7e0a203a (patch)
tree630804dacf8c85e3b8a20829641beb183d244beb
parent9d2701fe372975dd39d8a7834ffd9a7690dd0622 (diff)
downloadSurfer-052333b5c06a749d12cae384f04d8d1e7e0a203a.tar.gz
Surfer-052333b5c06a749d12cae384f04d8d1e7e0a203a.tar.zst
Surfer-052333b5c06a749d12cae384f04d8d1e7e0a203a.zip
enable tests
-rwxr-xr-xtest/test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test.js b/test/test.js
index c0d86d2..9192d7a 100755
--- a/test/test.js
+++ b/test/test.js
@@ -33,7 +33,7 @@ describe('Application life cycle test', function () {
33 execSync('cloudron build', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' }); 33 execSync('cloudron build', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
34 }); 34 });
35 35
36 xit('install app', function () { 36 it('install app', function () {
37 execSync('cloudron install --new --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' }); 37 execSync('cloudron install --new --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
38 }); 38 });
39 39
@@ -74,12 +74,12 @@ describe('Application life cycle test', function () {
74 }); 74 });
75 75
76 it('can get the uploaded file', function (done) { 76 it('can get the uploaded file', function (done) {
77 var contents = execSync(__dirname + '/../cli/surfer.js get test/test.js').toString('utf8'); 77 var contents = execSync(__dirname + '/../cli/surfer.js get surfer-test.txt').toString('utf8');
78 expect(contents).to.be('surfer'); 78 expect(contents).to.be('surfer');
79 done(); 79 done();
80 }); 80 });
81 81
82 xit('uninstall app', function () { 82 it('uninstall app', function () {
83 execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' }); 83 execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
84 fs.unlinkSync(process.env.HOME + '/.surfer.json'); 84 fs.unlinkSync(process.env.HOME + '/.surfer.json');
85 fs.unlinkSync(testFile); 85 fs.unlinkSync(testFile);