From 3107d8642cab33add03dd2badfcfa3a1906f0498 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 16 Jun 2015 10:40:50 -0700 Subject: [PATCH] Add descriptions for what teach test does --- test/app-flow-test.js | 5 +++++ test/cloudron-user-test.js | 6 ++++++ test/new-user-test.js | 6 ++++++ test/update-test.js | 6 ++++++ 4 files changed, 23 insertions(+) diff --git a/test/app-flow-test.js b/test/app-flow-test.js index 2c441eb..c801d62 100644 --- a/test/app-flow-test.js +++ b/test/app-flow-test.js @@ -1,5 +1,10 @@ #!/usr/bin/env node +/* + * This tests an app flow on the cloudron. User installs + * an app, tries to configure and then uninstall it. + */ + 'use strict'; var AppStore = require('../appstore.js'), diff --git a/test/cloudron-user-test.js b/test/cloudron-user-test.js index 5159435..273f363 100644 --- a/test/cloudron-user-test.js +++ b/test/cloudron-user-test.js @@ -2,6 +2,12 @@ 'use strict'; +/* + * This tests a flow for the cloudron 'user. The cloudron + * owner create a new user. This new user should be able to + * login with the resetToken. + */ + var AppStore = require('../appstore.js'), assert = require('assert'), Cloudron = require('../cloudron.js'), diff --git a/test/new-user-test.js b/test/new-user-test.js index aa64586..677bae9 100644 --- a/test/new-user-test.js +++ b/test/new-user-test.js @@ -1,5 +1,11 @@ #!/usr/bin/env node +/* + * This tests a flow for cloudron owner creating a cloudron + * from the appstore. Owner creates a cloudron, activates + * it, installs and app and deletes the cloudron eventually + */ + 'use strict'; var AppStore = require('../appstore.js'), diff --git a/test/update-test.js b/test/update-test.js index 57a8941..1050e53 100644 --- a/test/update-test.js +++ b/test/update-test.js @@ -1,5 +1,11 @@ #!/usr/bin/env node +/* + * This tests a flow for the cloudron owner updating a cloudron. + * It checks if an existing installed app retains it's data after + * an update. + */ + 'use strict'; var AppStore = require('../appstore.js'),