Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test cleanup

  • Loading branch information...
commit dc9092b2922874ec849f1178778ce07c0b2c56aa 1 parent 353d006
@badamson authored
View
6 test/v4/testErrors.coffee
@@ -42,12 +42,6 @@ vows.describe('error tests').addBatch({
undefined
'we see a 502': (err, data) ->
assert.equal err.message, 'Bad status code from server: 502'
- 'we see echonest status code 4': (err, data) ->
# this is from nginx, looks different
assert.equal data.status, 502
- # 'when using echonest':
- # topic: new echonest.Echonest()
- # "to pummel their servers until we hit the rate limit":
- # 'just kidding': (nest) ->
- # assert.instanceOf nest, echonest.Echonest
}).export module
View
12 test/v4/testPlaylist.coffee
@@ -1,6 +1,4 @@
-fs = require("promised-io/fs")
assert = require 'assert'
-async = require 'async'
vows = require 'vows'
echonest = require '../../lib/echonest'
util = require '../util'
@@ -54,14 +52,4 @@ vows.describe('playlist methods').addBatch({
'and there are no skipped songs': (err, response) ->
assert.isEmpty response.skipped_songs
'we see no errors': checkErrors
- "to create a static artist-radio playlist from behold... the arctopus":
- topic: (nest) ->
- nest.playlist.basic {
- artist: "behold... the arctopus"
- type: "artist-radio"
- }, @callback
- undefined
- 'i get some tunes': (err, response) ->
- assert.ok response.songs.length > 1
- 'we see no errors': checkErrors
}).export module
View
4 test/v4/testTrack.coffee
@@ -35,7 +35,7 @@ vows.describe('track methods').addBatch({
nest.track.profile {
md5: koenjiSong.md5
}, @callback
- undefined # async topics must return undefined
+ undefined
'it is correctly identified': (err, data) ->
matchesKoenji data
'we see no errors': checkErrors
@@ -45,7 +45,7 @@ vows.describe('track methods').addBatch({
nest.track.upload {
track: {data: filebuffer}, filetype: 'mp3'
}, @callback
- undefined # async topics must return undefined
+ undefined
'it is correctly identified': (err, data) ->
matchesKoenji data
'we see no errors': checkErrors
Please sign in to comment.
Something went wrong with that request. Please try again.