1 | describe('categories', function(){
|
2 |
|
3 | var feed = __dirname + '/feeds/category-feed.xml';
|
4 |
|
5 | it('should not seperate by comma', function (done) {
|
6 | fs.createReadStream(feed).pipe(new FeedParser())
|
7 | .once('readable', function () {
|
8 | var stream = this;
|
9 | assert.deepEqual(stream.read().categories, [
|
10 | 'Water Pollution',
|
11 | 'Gowanus Canal (Brooklyn, NY)'
|
12 | ]);
|
13 | done();
|
14 | })
|
15 | .on('error', function (err) {
|
16 | assert.ifError(err);
|
17 | done(err);
|
18 | });
|
19 | });
|
20 |
|
21 | });
|