8000 angular.js/changelog.spec.js at master · Nikhil22/angular.js · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":"benchmarks","path":"benchmarks","contentType":"directory"},{"name":"css","path":"css","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"i18n","path":"i18n","contentType":"directory"},{"name":"images","path":"images","contentType":"directory"},{"name":"lib","path":"lib","contentType":"directory"},{"name":"logs","path":"logs","contentType":"directory"},{"name":"scripts","path":"scripts","contentType":"directory"},{"name":"src","path":"src","contentType":"directory"},{"name":"test","path":"test","contentType":"directory"},{"name":".editorconfig","path":".editorconfig","contentType":"file"},{"name":".eslintignore","path":".eslintignore","contentType":"file"},{"name":".eslintrc-base.json","path":".eslintrc-base.json","contentType":"file"},{"name":".eslintrc-browser.json","path":".eslintrc-browser.json","contentType":"file"},{"name":".eslintrc-node.json","path":".eslintrc-node.json","contentType":"file"},{"name":".eslintrc-todo.json","path":".eslintrc-todo.json","contentType":"file"},{"name":".eslintrc.json","path":".eslintrc.json","contentType":"file"},{"name":".gitattributes","path":".gitattributes","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".nvmrc","path":".nvmrc","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"CHANGELOG.md","path":"CHANGELOG.md","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"Gruntfile.js","path":"Gruntfile.js","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.closure.md","path":"README.closure.md","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"TRIAGING.md","path":"TRIAGING.md","contentType":"file"},{"name":"angularFiles.js","path":"angularFiles.js","contentType":"file"},{"name":"bower.json","path":"bower.json","contentType":"file"},{"name":"changelog.js","path":"changelog.js","contentType":"file"},{"name":"changelog.spec.js","path":"changelog.spec.js","contentType":"file"},{"name":"check-size.sh","path":"check-size.sh","contentType":"file"},{"name":"compare-master-to-stable.js","path":"compare-master-to-stable.js","contentType":"file"},{"name":"gdocs.js","path":"gdocs.js","contentType":"file"},{"name":"init-repo.sh","path":"init-repo.sh","contentType":"file"},{"name":"karma-docs.conf.js","path":"karma-docs.conf.js","contentType":"file"},{"name":"karma-jqlite.conf.js","path":"karma-jqlite.conf.js","contentType":"file"},{"name":"karma-jquery-2.1.conf.js","path":"karma-jquery-2.1.conf.js","contentType":"file"},{"name":"karma-jquery-2.2.conf.js","path":"karma-jquery-2.2.conf.js","contentType":"file"},{"name":"karma-jquery.conf-factory.js","path":"karma-jquery.conf-factory.js","contentType":"file"},{"name":"karma-jquery.conf.js","path":"karma-jquery.conf.js","contentType":"file"},{"name":"karma-modules.conf.js","path":"karma-modules.conf.js","contentType":"file"},{"name":"karma-shared.conf.js","path":"karma-shared.conf.js","contentType":"file"},{"name":"npm-shrinkwrap.clean.json","path":"npm-shrinkwrap.clean.json","contentType":"file"},{"name":"npm-shrinkwrap.json","path":"npm-shrinkwrap.json","contentType":"file"},{"name":"package.json","path":"package.json","contentType":"file"},{"name":"protractor-conf.js","path":"protractor-conf.js","contentType":"file"},{"name":"protractor-jenkins-conf.js","path":"protractor-jenkins-conf.js","contentType":"file"},{"name":"protractor-shared-conf.js","path":"protractor-shared-conf.js","contentType":"file"},{"name":"protractor-travis-conf.js","path":"protractor-travis-conf.js","contentType":"file"},{"name":"validate-commit-msg.js","path":"validate-commit-msg.js","contentType":"file"},{"name":"validate-commit-msg.spec.js","path":"validate-commit-msg.spec.js","contentType":"file"}],"totalCount":54}},"fileTreeProcessingTime":11.431118,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":69395250,"defaultBranch":"master","name":"angular.js","ownerLogin":"Nikhil22","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2016-09-27T20:21:26.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/10525104?v=4","public":true,"private":false,"isOrgOwned":false},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"master","listCacheKey":"v0:1617572620.830091","canEdit":false,"refType":"branch","currentOid":"ddb4ef13a9793b93280e6b5ab2e0593af1c04743"},"path":"changelog.spec.js","currentUser":null,"blob":{"rawLines":["/* global describe: false, beforeEach: false, afterEach: false, it: false, expect: false */","","'use strict';","","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' +"," 'BREAKING CHANGE: first breaking change\\nsomething else\\n' +"," 'another line with more info\\n');",""," expect(msg.breaking).toEqual(' first breaking change\\nsomething else\\nanother line with more info\\n');"," });"," });",""," describe('printSection', function() {"," var output;"," var streamMock = {"," write: function(str) {"," output += str;"," }"," };",""," beforeEach(function() {"," output = '';"," });",""," it('should add a new line at the end of each breaking change list item ' +"," 'when there is 1 item per component', function() {"," var title = 'test';"," var printCommitLinks = false;",""," var section = {"," module1: [{subject: 'breaking change 1'}],"," module2: [{subject: 'breaking change 2'}]"," };"," var expectedOutput ="," '\\n## test\\n\\n' +"," '- **module1:** breaking change 1\\n' +"," '- **module2:** breaking change 2\\n' +"," '\\n';",""," ch.printSection(streamMock, title, section, printCommitLinks);"," expect(output).toBe(expectedOutput);"," });",""," it('should add a new line at the end of each breaking change list item ' +"," 'when there are multiple items per component', function() {"," var title = 'test';"," var printCommitLinks = false;",""," var section = {"," module1: ["," {subject: 'breaking change 1.1'},"," {subject: 'breaking change 1.2'}"," ],"," module2: ["," {subject: 'breaking change 2.1'},"," {subject: 'breaking change 2.2'}"," ]"," };"," var expectedOutput ="," '\\n## test\\n\\n' +"," '- **module1:**\\n' +"," ' - breaking change 1.1\\n' +"," ' - breaking change 1.2\\n' +"," '- **module2:**\\n' +"," ' - breaking change 2.1\\n' +"," ' - breaking change 2.2\\n' +"," '\\n';",""," ch.printSection(streamMock, title, section, printCommitLinks);"," expect(output).toBe(expectedOutput);"," });"," });","});"],"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/Nikhil22/angular.js/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"changelog.spec.js","displayUrl":"https://github.com/Nikhil22/angular.js/blob/master/changelog.spec.js?raw=true","headerInfo":{"blobSize":"3.48 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"b3b46ef","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FNikhil22%2Fangular.js%2Fblob%2Fmaster%2Fchangelog.spec.js","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"108","truncatedSloc":"90"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"JavaScript","languageID":183,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/Nikhil22/angular.js/blob/master/changelog.spec.js","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/Nikhil22/angular.js/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/Nikhil22/angular.js/raw/refs/heads/master/changelog.spec.js","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"write","kind":"function","ident_start":1923,"ident_end":1928,"extent_start":1923,"extent_end":1976,"fully_qualified_name":"write","ident_utf16":{"start":{"line_number":50,"utf16_col":6},"end":{"line_number":50,"utf16_col":11}},"extent_utf16":{"start":{"line_number":50,"utf16_col":6},"end":{"line_number":52,"utf16_col":7}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"csrf_tokens":{"/Nikhil22/angular.js/branches":{"post":"zDY5ZaUy8E7JUOUj-47EzufHYeAKXaVbLwnWjTSsWhNdDO472Kl7V0HzDIpyLeiJi2z1DsWPFM_qXRPGMc9baQ"},"/repos/preferences":{"post":"6hvx5u4Wtrbf2Mfp_RUZG7HpEzy132N7L5Q6dz2M2gOLaayNL9UIH875aqGT1BSPfo1UZ-ekTHhyjoGN7lfH2Q"}}},"title":"angular.js/changelog.spec.js at master · Nikhil22/angular.js","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1ae9fa256942.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}
0