amazon-reviews
Version:
A node.js module to crawl product reviews from Amazon.
24 lines (18 loc) • 634 B
text/coffeescript
should = require 'should'
getReview = require '../lib/getReview'
describe 'getReview()', ->
it 'should be done', (done) ->
getReview
productId: 'B00DFFT76U'
reviewId: 'RDQO5C2XEPVPC'
,
(err, review) ->
should.not.exist err
should.exist review
review.title.should.equal 'Swaddlers vs Cruisers Size 4'
review.starCount.should.equal 5
should.exist review.descText
should.exist review.profile
review.profile.name.should.equal 'Rebecca N'
review.profile.id.should.equal 'A276OI0NHBYORX'
done()