diff options
| author | Di Peng | 2011-08-20 08:51:00 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-08-24 15:03:09 -0700 | 
| commit | 19401280aed9d4767faddcf58fab91ec13c556a9 (patch) | |
| tree | e3b3d6a45224077f8554d22953a8319f1faf194f /docs/spec | |
| parent | 08a33e7bb377a4d47917dbf5fabbe59b562f1e04 (diff) | |
| download | angular.js-19401280aed9d4767faddcf58fab91ec13c556a9.tar.bz2 | |
feat(doc): generate both normal and debug version of index.html
- index.html has manifest file and angular.min.js
- index-jq.html has manifest file, angular.min.js and jquery.min.js
- index-debug.html has angular.js
- index-jq-debug.html has angular.js and jquery.min.js
Diffstat (limited to 'docs/spec')
| -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'); +    }); +  });  }); | 
