mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
[web] Add .py to defaultTextExtensions
GitOrigin-RevId: 0880c01f6e3b4267f6cb790a44c6094738ab2229
This commit is contained in:
committed by
Copybot
parent
9e677a2c1e
commit
117a783f21
@@ -55,6 +55,7 @@ const defaultTextExtensions = [
|
||||
'ldf',
|
||||
'rmd',
|
||||
'lua',
|
||||
'py',
|
||||
'gv',
|
||||
'mf',
|
||||
'yml',
|
||||
|
||||
@@ -337,7 +337,7 @@ describe('FileTypeManager', function () {
|
||||
|
||||
it('should recognise new binary files as binary', async function (ctx) {
|
||||
const { binary } = await ctx.FileTypeManager.promises.getType(
|
||||
'/file.py',
|
||||
'/file.eps',
|
||||
'latin1.tex',
|
||||
null
|
||||
)
|
||||
@@ -347,7 +347,7 @@ describe('FileTypeManager', function () {
|
||||
|
||||
it('should recognise existing binary files as binary', async function (ctx) {
|
||||
const { binary } = await ctx.FileTypeManager.promises.getType(
|
||||
'/file.py',
|
||||
'/file.eps',
|
||||
'latin1.tex',
|
||||
'file'
|
||||
)
|
||||
@@ -357,7 +357,7 @@ describe('FileTypeManager', function () {
|
||||
|
||||
it('should preserve existing non-binary files as non-binary', async function (ctx) {
|
||||
const { binary } = await ctx.FileTypeManager.promises.getType(
|
||||
'/file.py',
|
||||
'/file.eps',
|
||||
'latin1.tex',
|
||||
'doc'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user