Skip to content

Commit

Permalink
update test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas-codecov committed Aug 20, 2024
1 parent a4402c3 commit 477faaf
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion src/shared/utils/prismLanguageMapper.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,58 @@ describe('prismLanguageMapper', () => {
{ extension: 'rss', expected: 'markup' },
{ extension: 'sh', expected: 'bash' },
{ extension: 'c', expected: 'c' },
{ extension: 'h', expected: 'clike' },
{ extension: 'h', expected: 'c' },
{ extension: 'cc', expected: 'cpp' },
{ extension: 'cpp', expected: 'cpp' },
{ extension: 'hpp', expected: 'cpp' },
{ extension: 'cs', expected: 'csharp' },
{ extension: 'cshtml', expected: 'cshtml' },
{ extension: 'css', expected: 'css' },
{ extension: 'dart', expected: 'dart' },
{ extension: 'f', expected: 'fortran' },
{ extension: 'fpp', expected: 'fortran' },
{ extension: 'f90', expected: 'fortran' },
{ extension: 'fs', expected: 'fsharp' },
{ extension: 'java', expected: 'java' },
{ extension: 'jl', expected: 'julia' },
{ extension: 'js', expected: 'javascript' },
{ extension: 'cjs', expected: 'javascript' },
{ extension: 'mjs', expected: 'javascript' },
{ extension: 'jsx', expected: 'jsx' },
{ extension: 'kt', expected: 'kotlin' },
{ extension: 'kts', expected: 'kotlin' },
{ extension: 'go', expected: 'go' },
{ extension: 'gql', expected: 'graphql' },
{ extension: 'graphql', expected: 'graphql' },
{ extension: 'json', expected: 'json' },
{ extension: 'less', expected: 'less' },
{ extension: 'objc', expected: 'objectivec' },
{ extension: 'ocaml', expected: 'ocaml' },
{ extension: 'php', expected: 'php' },
{ extension: 'py', expected: 'python' },
{ extension: 'r', expected: 'r' },
{ extension: 'ps1', expected: 'powershell' },
{ extension: 'psm1', expected: 'powershell' },
{ extension: 'razor', expected: 'cshtml' },
{ extension: 'rb', expected: 'ruby' },
{ extension: 'reason', expected: 'reason' },
{ extension: 'rs', expected: 'rust' },
{ extension: 'sass', expected: 'sass' },
{ extension: 'scala', expected: 'scala' },
{ extension: 'scss', expected: 'scss' },
{ extension: 'sol', expected: 'solidity' },
{ extension: 'sql', expected: 'sql' },
{ extension: 'swift', expected: 'swift' },
{ extension: 'svelte', expected: 'markup' },
{ extension: 'ts', expected: 'typescript' },
{ extension: 'tsx', expected: 'tsx' },
{ extension: 'vb', expected: 'visual-basic' },
{ extension: 'vba', expected: 'visual-basic' },
{ extension: 'vbs', expected: 'visual-basic' },
{ extension: 'vue', expected: 'markup' },
{ extension: 'wasm', expected: 'wasm' },
{ extension: 'yaml', expected: 'yaml' },
{ extension: 'zig', expected: 'zig' },
]

it.each(testCases)(
Expand Down

0 comments on commit 477faaf

Please sign in to comment.