Skip to content

Commit

Permalink
Add subfile task dependency unique name prefixing
Browse files Browse the repository at this point in the history
  • Loading branch information
robatron committed Jul 31, 2014
1 parent c0080a9 commit 1b4bb9a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/add-subtask-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,18 @@ describe.only( 'add-subtask', function () {
testTasks[ 'test-name' ].subtasks[ 0 ].name.should.eql( 'unique-name-test-name' );
} );

it( 'prefixes the subfile\'s task dependencies with its unique name', function () {
var testTasks = {};
var addSubtask = getAddSubtask();
addSubtask(
{ uniqueName: 'subfile-unique-name' }, testTasks, 'task-name',
[ 'task-dep-1', 'task-dep-2' ]
);
var subtaskDeps = testTasks[ 'task-name' ].subtasks[ 0 ].param1;
subtaskDeps[ 0 ].should.eql( 'subfile-unique-name-task-dep-1' );
subtaskDeps[ 1 ].should.eql( 'subfile-unique-name-task-dep-2' );
} );

it( 'changes the working directory to the subfile\'s dirname' );

it( 'executes the subfile task\'s callback' );
Expand Down

0 comments on commit 1b4bb9a

Please sign in to comment.