Skip to content

Commit

Permalink
Merge pull request #193 from swagger-api/feature/mocha
Browse files Browse the repository at this point in the history
added mocha tests, started test structure
  • Loading branch information
fehguy committed Dec 31, 2014
2 parents a685505 + 97cde81 commit 0fda6ae
Show file tree
Hide file tree
Showing 27 changed files with 588 additions and 1,366 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: node_js
node_js:
- '0.10'
script:
- npm install
- mocha
9 changes: 1 addition & 8 deletions Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,10 @@ task 'bake', 'Compile and concatenate CoffeeScript files to JavaScript', ->
exec "echo '// version #{obj.version}' >> lib/#{outputFile}.js"

# shared files
mergeFiles "src/main/javascript", "#{outputFile}", false
mergeFiles "src/js", "#{outputFile}", false

exec "cp lib/#{outputFile}.js dist/lib/"

#coffee = spawn 'coffee', ['-c', '-o', 'lib', 'src']
#coffee.stderr.on 'data', (data) ->
# process.stderr.write data.toString()
#coffee.stdout.on 'data', (data) ->
# print data.toString()
#coffee.on 'exit', (code) ->
# callback?() if code is 0

task 'watch', 'Automatically recompile CoffeeScript files to JavaScript', ->
coffee = spawn 'coffee', ['-cw', '-o', 'lib', 'src']
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Swagger JS library

[![Build Status](https://api.travis-ci.org/swagger-api/swagger-js.png?branch=feature/mocha)](https://travis-ci.org/swagger-api/swagger-js)

This is the Wordnik Swagger javascript client for use with [swagger](http://swagger.wordnik.com) enabled APIs.
It's written in CoffeeScript and tested with Jasmine, and is the fastest way to enable a javascript client to communicate with a swagger-enabled server.

Expand Down
28 changes: 0 additions & 28 deletions api-listing-spec.html

This file was deleted.

28 changes: 0 additions & 28 deletions execution-spec.html

This file was deleted.

28 changes: 0 additions & 28 deletions http-spec.html

This file was deleted.

Loading

0 comments on commit 0fda6ae

Please sign in to comment.