Skip to content

Commit

Permalink
Merge branch 'release/1.0.0-rc.16'
Browse files Browse the repository at this point in the history
  • Loading branch information
Gery Hirschfeld committed Jun 5, 2015
2 parents b59ac77 + 531bfdd commit 08af7c1
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 36 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
1.0.0-rc.16 / 2015-06-05
==================

* Release 1.0.0-rc.16
* Added Pull-Request TypeScript support
* Added filter generator
* Fixed unit test templates

1.0.0-rc.15 / 2015-06-04
==================

Expand Down
23 changes: 0 additions & 23 deletions app/templates/tasks/dist-server.js

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "generator-hirsch",
"version": "1.0.0-rc.15",
"description": "Yeoman generator for large module-based AngularJS applications",
"version": "1.0.0-rc.16",
"description": "Yeoman generator for large module-based AngularJS applications with the option to use typescript",
"license": "MIT",
"main": "app/index.js",
"repository": "[email protected]/generator-hirsch",
Expand Down
2 changes: 1 addition & 1 deletion templates/javascript/directive.unit.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
describe('Unit: <%= prefix %>.<%= module %>.directives.<%= classedName %>', function () {
var $compile, $rootScope;

beforeEach(module('<%= prefix %>.<%= module %>.directives'));
beforeEach(module('<%= prefix %>.<%= module %>.directives.<%= classedName %>'));

beforeEach(angular.mock.inject(['$compile', '$rootScope', function($c, $r){
$compile = $c;
Expand Down
2 changes: 1 addition & 1 deletion templates/javascript/factory.unit.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
describe('Unit: <%= prefix %>.<%= module %>.services.<%= classedName %>', function () {

var <%= prefix %><%= classedName %>;
beforeEach(module('<%= prefix %>'));
beforeEach(module('<%= prefix %>.<%= module %>.services.<%= classedName %>'));
beforeEach(inject(function (_<%= prefix %><%= classedName %>_) {
<%= prefix %><%= classedName %> = _<%= prefix %><%= classedName %>_;
}));
Expand Down
4 changes: 2 additions & 2 deletions templates/javascript/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'use strict';

angular
.module('<%= appname %>.<%= module %>.filters.<%= classedName %>', [])
.module('<%= prefix %>.<%= module %>.filters.<%= classedName %>', [])
.filter('<%= prefix %><%= classedName %>', <%= classedName %>Filter);

function <%= classedName %>Filter() {
Expand All @@ -15,7 +15,7 @@

// code goes here

return input;
return input + 'Filter';
}

}
Expand Down
17 changes: 11 additions & 6 deletions templates/javascript/filter.unit.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@

describe('Unit: <%= prefix %>.<%= module %>.filters.<%= classedName %>', function () {

beforeEach(module('app'));
beforeEach(module('<%= prefix %>.<%= module %>.filters.<%= classedName %>'));

it('should contain an <%= prefix %>.<%= module %>.filters.<%= classedName %> filter',
inject(function (<%= prefix %><%= classedName %>) {
expect(<%= prefix %><%= classedName %>).not.to.equal(null);
})
);
it('should have a <%= prefix %><%= classedName %> filter', inject(function($filter) {
expect($filter('<%= prefix %><%= classedName %>')).not.to.equal(null);
}));

it('should have a <%= prefix %><%= classedName %> filter that produces an string',
inject(function($filter) {

var filter = $filter('<%= prefix %><%= classedName %>')('bubu');
expect(filter).to.be.a('string');
expect(filter).to.equal('bubuFilter');
}));

});
2 changes: 1 addition & 1 deletion templates/javascript/service.unit.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
describe('Unit: <%= prefix %>.<%= module %>.services.<%= classedName %>', function () {

var <%= prefix %><%= classedName %>;
beforeEach(module('<%= prefix %>'));
beforeEach(module('<%= prefix %>.<%= module %>.services.<%= classedName %>'));
beforeEach(inject(function (_<%= prefix %><%= classedName %>_) {
<%= prefix %><%= classedName %> = _<%= prefix %><%= classedName %>_;
}));
Expand Down

0 comments on commit 08af7c1

Please sign in to comment.