Skip to content

Commit

Permalink
Refactor test names
Browse files Browse the repository at this point in the history
  • Loading branch information
robatron committed Jul 31, 2014
1 parent 1b4bb9a commit ef5fd4b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/add-subtask-spec.js
Original file line number Diff line number Diff line change
@@ -63,19 +63,19 @@ describe.only( 'add-subtask', function () {
it( 'registers a master task with `name` if it doesn\'t already exist', function () {
var testTasks = {};
var addSubtask = getAddSubtask();
addSubtask( { uniqueName: 'unique-name' }, testTasks, 'test-name', [] );
addSubtask( { uniqueName: 'unique-name' }, testTasks, 'task-name', [] );

var taskObj = testTasks[ 'test-name' ];
var taskObj = testTasks[ 'task-name' ];
_.isPlainObject( taskObj ).should.be.true;
taskObj.name = 'test-name';
taskObj.name = 'task-name';
_.isArray( taskObj.subtasks ).should.be.true;
} );

it( 'registers the subfile\'s tasks prefixed with its unique name under the master task name', function () {
var testTasks = {};
var addSubtask = getAddSubtask();
addSubtask( { uniqueName: 'unique-name' }, testTasks, 'test-name', [] );
testTasks[ 'test-name' ].subtasks[ 0 ].name.should.eql( 'unique-name-test-name' );
addSubtask( { uniqueName: 'unique-name' }, testTasks, 'task-name', [] );
testTasks[ 'task-name' ].subtasks[ 0 ].name.should.eql( 'unique-name-task-name' );
} );

it( 'prefixes the subfile\'s task dependencies with its unique name', function () {

0 comments on commit ef5fd4b

Please sign in to comment.