mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
- tests for cookiestring and querystring - fixed Cakefile with a concat so it works fine in both browser and local test
12 lines
406 B
CoffeeScript
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
|