Skip to content

Commit

Permalink
recognize .http files
Browse files Browse the repository at this point in the history
  • Loading branch information
TimHess committed Mar 3, 2025
1 parent f481cb3 commit 4404e55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions start-client/src/components/utils/Zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const FILE_EXTENSION = {
Dockerfile: 'docker',
fs: 'fsharp',
fsproj: 'xml',
http: 'http',
json: 'javascript',
gitignore: 'git',
js: 'javascript',
Expand Down
3 changes: 2 additions & 1 deletion start-client/src/components/utils/__tests__/Zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { createTree, findRoot, getLanguage } from '../Zip'
* Function getLanguage
*/
describe('getLanguage', () => {
it('should return the extention', () => {
it('should return the extension', () => {
expect(getLanguage('index.md')).toBe('markdown')
expect(getLanguage('index.spec.md')).toBe('markdown')
expect(getLanguage('index.js')).toBe('javascript')
Expand All @@ -25,6 +25,7 @@ describe('getLanguage', () => {
expect(getLanguage('Dockerfile')).toBe('docker')
expect(getLanguage('index.yml')).toBe('yaml')
expect(getLanguage('index.yaml')).toBe('yaml')
expect(getLanguage('Sample.http')).toBe('http')
})
it('should not return the extension', () => {
expect(getLanguage('index.php')).toBe(null)
Expand Down

0 comments on commit 4404e55

Please sign in to comment.