forked from meteor/meteor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate.js
More file actions
39 lines (34 loc) · 953 Bytes
/
create.js
File metadata and controls
39 lines (34 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
var selftest = require('../tool-testing/selftest.js');
var Sandbox = selftest.Sandbox;
selftest.define("create", function () {
var s = new Sandbox;
// Can we create an app? Yes!
var run = s.run("create", "foobar");
run.waitSecs(60);
run.match("Created a new Meteor app in 'foobar'.");
run.match("To run your new app");
run.expectExit(0);
// Now, can we run it?
s.cd("foobar");
run = s.run();
run.waitSecs(15);
run.match("foobar");
run.match("proxy.");
// Do not print out the changes to the versions file!
run.read("\n=>");
run.match("MongoDB");
run.waitSecs(5);
run.match("your app");
run.waitSecs(5);
run.match("running at");
run.match("localhost");
run.stop();
run = s.run("create", "--list");
run.waitSecs(5);
run.read('Available');
run.match('leaderboard');
run.expectExit(0);
// XXX test that --list always gives you the examples of the current
// release!
// XXX XXX more more
});