cordova-android/bin/tests/create.coffee

22 lines
688 B
CoffeeScript
Raw Normal View History

util = require 'util'
exec = require('child_process').exec
path = require 'path'
exports['default example project is generated'] = (test) ->
test.expect 1
exec './bin/create', (error, stdout, stderr) ->
test.ok true, "this assertion should pass" unless error?
test.done()
2012-02-02 09:45:49 +08:00
exports['default example project has a ./.cordova folder'] = (test) ->
test.expect 1
2012-02-02 09:45:49 +08:00
path.exists './example/.cordova', (exists) ->
test.ok exists, 'the cordova folder exists'
test.done()
2012-02-02 09:45:49 +08:00
exports['default example project has a /cordova folder'] = (test) ->
test.expect 1
2012-02-02 09:45:49 +08:00
path.exists './example/cordova', (exists) ->
test.ok exists, 'the other cordova folder exists'
test.done()