2011-09-02 05:34:11 +08:00
|
|
|
util = require 'util'
|
2011-08-20 11:39:35 +08:00
|
|
|
exec = require('child_process').exec
|
2011-09-02 05:34:11 +08:00
|
|
|
path = require 'path'
|
2011-08-20 11:39:35 +08:00
|
|
|
|
|
|
|
exports['default example project is generated'] = (test) ->
|
|
|
|
test.expect 1
|
|
|
|
exec './bin/create', (error, stdout, stderr) ->
|
2011-08-20 12:50:46 +08:00
|
|
|
test.ok true, "this assertion should pass" unless error?
|
|
|
|
test.done()
|
2011-08-20 11:39:35 +08:00
|
|
|
|
2011-09-02 05:34:11 +08:00
|
|
|
exports['default example project has a ./.phonegap folder'] = (test) ->
|
|
|
|
test.expect 1
|
|
|
|
path.exists './example/.phonegap', (exists) ->
|
|
|
|
test.ok exists, 'the phonegap folder exists'
|
|
|
|
test.done()
|
|
|
|
|
|
|
|
exports['default example project has a /phonegap folder'] = (test) ->
|
|
|
|
test.expect 1
|
|
|
|
path.exists './example/phonegap', (exists) ->
|
|
|
|
test.ok exists, 'the other phonegap folder exists'
|
|
|
|
test.done()
|