mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Add prettier (#1339)
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user