diff options
Diffstat (limited to 'docs/spec')
| -rw-r--r-- | docs/spec/domSpec.js | 15 | ||||
| -rw-r--r-- | docs/spec/ngdocSpec.js | 7 |
2 files changed, 19 insertions, 3 deletions
diff --git a/docs/spec/domSpec.js b/docs/spec/domSpec.js index af1a8faa..58063789 100644 --- a/docs/spec/domSpec.js +++ b/docs/spec/domSpec.js @@ -5,13 +5,24 @@ describe('dom', function(){ it('should render code, live, test', function(){ var dom = new DOM(); dom.example('desc', 'src', 'scenario'); - expect(dom.toString()).toEqual('<h1>Example</h1>\ndesc<doc:example><doc:source>src</doc:source>\n<doc:scenario>scenario</doc:scenario>\n</doc:example>\n'); + expect(dom.toString()).toEqual( + '<h1>Example</h1>\n' + + '<div class="example">' + + 'desc<doc:example><doc:source>src</doc:source>\n' + + '<doc:scenario>scenario</doc:scenario>\n'+ + '</doc:example>\n' + + '</div>\n'); }); it('should render non-live, test with description', function(){ var dom = new DOM(); dom.example('desc', 'src', false); - expect(dom.toString()).toEqual('<h1>Example</h1>\ndesc<div ng:non-bindable=""><pre class="brush: js; html-script: true;">src</pre>\n</div>\n'); + expect(dom.toString()).toEqual('<h1>Example</h1>\n' + + '<div class="example">' + + 'desc<div ng:non-bindable="">' + + '<pre class="brush: js; html-script: true;">src</pre>\n' + + '</div>\n' + + '</div>\n'); }); it('should render non-live, test', function(){ diff --git a/docs/spec/ngdocSpec.js b/docs/spec/ngdocSpec.js index 2bea6e9a..8f57e329 100644 --- a/docs/spec/ngdocSpec.js +++ b/docs/spec/ngdocSpec.js @@ -304,7 +304,12 @@ describe('ngdoc', function(){ var doc = new Doc('@this I am self.'); doc.ngdoc = 'filter'; doc.parse(); - expect(doc.html()).toContain('<h3>Method\'s <code>this</code></h3>\n<p>I am self.</p>'); + expect(doc.html()).toContain('<h3>Method\'s <code>this</code></h3>\n' + + '<div>' + + '<p>I am self.</p>' + + '</div>\n'); + expect(doc.html()).toContain('<h3>Method\'s <code>this</code></h3>\n' + + '<div><p>I am self.</p></div>'); }); }); }); |
