diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-13 06:07:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-13 06:07:51 +0300 |
commit | b8e30b446d9cb91b94d2b55e5c81303c8f2d1b25 (patch) | |
tree | a68cf61f2840805d943d94b32ecbb6535119d1cb /spec/frontend/repository/utils | |
parent | 01226c755d607c39e102dcac4b0c292c416c2aeb (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/repository/utils')
-rw-r--r-- | spec/frontend/repository/utils/readme_spec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/frontend/repository/utils/readme_spec.js b/spec/frontend/repository/utils/readme_spec.js index 1b275de86c3..985d947a0af 100644 --- a/spec/frontend/repository/utils/readme_spec.js +++ b/spec/frontend/repository/utils/readme_spec.js @@ -31,6 +31,12 @@ describe('readmeFile', () => { }); }); + it('recognizes Readme.txt as a plain text README', () => { + expect(readmeFile([{ name: 'Readme.txt' }])).toEqual({ + name: 'Readme.txt', + }); + }); + it('returns undefined when there are no appropriate files', () => { expect(readmeFile([{ name: 'index.js' }, { name: 'md.README' }])).toBe(undefined); expect(readmeFile([])).toBe(undefined); |