GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — angular.js/changelog.spec.js at master · langpavel/angular.js Expand file tree/ Copy pathchangelog.spec.jsMore file actions 43 lines (35 loc) · 1.66 KB / Copy pathchangelog.spec.jsFile metadata and controls43 lines (35 loc) · 1.66 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 describe('changelog.js', function() { var ch = require('./changelog'); describe('parseRawCommit', function() { it('should parse raw commit', function() { var msg = ch.parseRawCommit( '9b1aff905b638aa274a5fc8f88662df446d374bd\n' + 'feat(scope): broadcast $destroy event on scope destruction\n' + 'perf testing shows that in chrome this change adds 5-15% overhead\n' + 'when destroying 10k nested scopes where each scope has a $destroy listener\n'); expect(msg.type).toBe('feat'); expect(msg.hash).toBe('9b1aff905b638aa274a5fc8f88662df446d374bd'); expect(msg.subject).toBe('broadcast $destroy event on scope destruction'); expect(msg.body).toBe('perf testing shows that in chrome this change adds 5-15% overhead\n' + 'when destroying 10k nested scopes where each scope has a $destroy listener\n') expect(msg.component).toBe('scope'); }); it('should parse closed issues', function() { var msg = ch.parseRawCommit( '13f31602f396bc269076ab4d389cfd8ca94b20ba\n' + 'feat(ng-list): Allow custom separator\n' + 'bla bla bla\n\n' + 'Closes #123\nCloses #25\n'); expect(msg.closes).toEqual([123, 25]); }); it('should parse breaking changes', function() { var msg = ch.parseRawCommit( '13f31602f396bc269076ab4d389cfd8ca94b20ba\n' + 'feat(ng-list): Allow custom separator\n' + 'bla bla bla\n\n' + 'Breaks first breaking change\nsomething else\n' + 'Breaks another breaking change\n'); expect(msg.breaks).toEqual(['first breaking change', 'another breaking change']); }); }); }); |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |