build(aio): move the transforms folder into the tools folder

This commit is contained in:
Peter Bacon Darwin
2017-04-16 21:31:21 +01:00
committed by Pete Bacon Darwin
parent 7c418a7e06
commit abecf3eb6d
160 changed files with 24 additions and 18 deletions

View File

@ -0,0 +1,14 @@
var factory = require('./toId');
describe('toId filter', function() {
var filter;
beforeEach(function() { filter = factory(); });
it('should be called "toId"', function() { expect(filter.name).toEqual('toId'); });
it('should convert a string to make it appropriate for use as an HTML id', function() {
expect(filter.process('This is a big string with €bad#characaters¢\nAnd even NewLines'))
.toEqual('This-is-a-big-string-with--bad-characaters--And-even-NewLines');
});
});