snowflake/proxy/Cakefile
Serene Han d735c0fbf9 snowflake proxy asks user for relay address. also:
- tests for cookiestring and querystring
- fixed Cakefile with a concat so it works fine in both browser and local test
2016-01-11 17:58:13 -08:00

12 lines
406 B
CoffeeScript

fs = require 'fs'
{exec} = require 'child_process'
task 'test', 'snowflake unit tests', () ->
testFile = 'test/snowflake.bundle.coffee'
exec 'cat snowflake.coffee snowflake_test.coffee | cat > ' + testFile, (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr
exec 'coffee ' + testFile + ' -v', (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr