Add prettier (#1339)

This commit is contained in:
Timofey Kachalov
2025-12-04 00:09:10 +04:00
committed by GitHub
parent 01465a233c
commit 4ee4b219e5
444 changed files with 10605 additions and 13266 deletions
@@ -2,16 +2,16 @@ import { expect } from 'chai';
import { ObfuscatedCodeFileUtils } from '../../../src/cli/utils/ObfuscatedCodeFileUtils';
describe('ObfuscatedCodeFileUtils', () => {
let util: ObfuscatedCodeFileUtils;
let util: ObfuscatedCodeFileUtils;
beforeEach(() => {
util = new ObfuscatedCodeFileUtils('src/cli/', {
output: 'src/cli/dist',
beforeEach(() => {
util = new ObfuscatedCodeFileUtils('src/cli/', {
output: 'src/cli/dist'
});
});
});
it('should handle input path ending (or not ending) with forward slash', () => {
const result = util.getOutputCodePath('src/cli/app.js');
expect(result).equals('src/cli/dist/app.js');
});
it('should handle input path ending (or not ending) with forward slash', () => {
const result = util.getOutputCodePath('src/cli/app.js');
expect(result).equals('src/cli/dist/app.js');
});
});