1 | should = require 'should'
|
2 |
|
3 | getProductIds = require '../lib/getProductIds'
|
4 |
|
5 |
|
6 | describe 'getProductIds(...)', ->
|
7 | it 'should be done', (done) ->
|
8 | getProductIds
|
9 | url: 'http://www.amazon.com/s/ref=sr_pg_2?rh=n%3A165796011%2Cn%3A%21165797011%2Cn%3A166842011&page=220&bbn=165797011&sort=reviewrank_authority&ie=UTF8&qid=1381287847'
|
10 | ,
|
11 | (err, productIds) ->
|
12 | should.not.exist err
|
13 | should.exist productIds
|
14 |
|
15 | done()
|