Skip to content

Commit

Permalink
Merge pull request #542 from cyberixae/fix_through_calls
Browse files Browse the repository at this point in the history
Fix through2 obj call syntax
  • Loading branch information
hannu committed Mar 30, 2015
2 parents 0ac2914 + 6eae931 commit 7b33738
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/integration/structure.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('index.html', function() {
this.timeout(5000);
var files = [];
styleguideGenerateStream().pipe(
through.obj({objectMode: true}, collector(files), function(callback) {
through.obj(collector(files), function(callback) {
indexHtml = findFile(files, 'index.html');
assertions.indexHtml.set(indexHtml);
callback();
Expand All @@ -71,7 +71,7 @@ describe('styleguide_pseudo_styles.css', function() {
this.timeout(5000);
var files = [];
styleguideApplyStylesStream().pipe(
through.obj({objectMode: true}, collector(files), function(callback) {
through.obj(collector(files), function(callback) {
var css = findFile(files, 'styleguide_pseudo_styles.css');
assertions.pseudoStyles.set(css);
callback();
Expand All @@ -90,7 +90,7 @@ describe('styleguide_at_rules.css', function() {
this.timeout(5000);
var files = [];
styleguideApplyStylesStream().pipe(
through.obj({objectMode: true}, collector(files), function(callback) {
through.obj(collector(files), function(callback) {
var css = findFile(files, 'styleguide_at_rules.css');
assertions.atRules.set(css);
callback();
Expand All @@ -109,7 +109,7 @@ describe('overview.html', function() {
this.timeout(5000);
var files = [];
styleguideGenerateStream().pipe(
through.obj({objectMode: true}, collector(files), function(callback) {
through.obj(collector(files), function(callback) {
var overviewHtml = findFile(files, 'overview.html');
assertions.overviewHtml.set(overviewHtml);
callback();
Expand All @@ -127,7 +127,7 @@ describe('styleguide.css', function() {
before(function(done) {
var files = [];
styleguideApplyStylesStream().pipe(
through.obj({objectMode: true}, collector(files), function(callback) {
through.obj(collector(files), function(callback) {
var css = findFile(files, 'styleguide.css');
assertions.styleguideCss.set(css);
callback();
Expand Down Expand Up @@ -180,7 +180,7 @@ function createStyleGuideJson(source, variablesFile, _this, done) {

config.styleVariables = variablesFile;
styleguideGenerateStream(source, config).pipe(
through.obj({objectMode: true}, collector(files), function(callback) {
through.obj(collector(files), function(callback) {
_this.jsonData = JSON.parse(findFile(files, 'styleguide.json').contents);
callback();
done();
Expand Down

0 comments on commit 7b33738

Please sign in to comment.