mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-18 14:17:30 +00:00
19 lines
467 B
JavaScript
19 lines
467 B
JavaScript
'use strict';
|
|
|
|
var test = require('prova'),
|
|
normalize = require('../../streams/normalize'),
|
|
concat = require('concat-stream');
|
|
|
|
test('normalizes tags', function (t) {
|
|
var stream = normalize();
|
|
|
|
stream.pipe(concat(function (data) {
|
|
t.deepEqual(data, [{
|
|
tags: [ { title: 'returns' }, { title: 'augments' }, { title: 'name' } ]
|
|
}]);
|
|
t.end();
|
|
}));
|
|
|
|
stream.end({ tags: [ { title: 'return' }, { title: 'extends' }, { title: 'name' } ] });
|
|
});
|