diff options
Diffstat (limited to 'docs/spec/writerSpec.js')
| -rw-r--r-- | docs/spec/writerSpec.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/spec/writerSpec.js b/docs/spec/writerSpec.js index 8354ad5d..a44e283c 100644 --- a/docs/spec/writerSpec.js +++ b/docs/spec/writerSpec.js @@ -15,4 +15,20 @@ describe('writer', function(){ expect(toString(['abc',{}])).toEqual('abc{}'); }); }); + + describe('replace method', function() { + var content, + replacements; + + beforeEach(function() { + content = 'angular super jQuery manifest'; + }); + + it('should replace placeholders', function() { + replacements = {'angular': 'ng', 'jQuery': 'jqlite','notHere': 'here'}; + + content = writer.replace(content, replacements); + expect(content).toBe('ng super jqlite manifest'); + }); + }); }); |
