Skip to content

Commit

Permalink
test(route): add style test for route
Browse files Browse the repository at this point in the history
  • Loading branch information
meriadec committed Feb 27, 2015
1 parent b38fd3b commit 0015c70
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/test-route.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,27 @@ describe('Launching route tests', function () {

});

it('should create a route with style', function (done) {

bangRoute = helpers.createGenerator('bangular:route', [bangDir + '/route'], 'yolo');
helpers.mockPrompt(bangRoute, { route: '/yolo', import: true });
bangRoute.run(function () {

assert.file('client/views/yolo/yolo.js');
assert.file('client/views/yolo/yolo.scss');
assert.file('client/views/yolo/yolo.controller.js');
assert.file('client/views/yolo/yolo.spec.js');
assert.file('client/views/yolo/yolo.html');

assert.fileContent('client/views/yolo/yolo.controller.js', 'YoloCtrl');
assert.fileContent('client/views/yolo/yolo.spec.js', '$controller(\'YoloCtrl\'');
assert.fileContent('client/views/yolo/yolo.js', '.when(\'/yolo\',');

done();
});

});

});

});

0 comments on commit 0015c70

Please sign in to comment.