mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
18 lines
558 B
TypeScript
18 lines
558 B
TypeScript
import { expect } from 'chai';
|
|
import { ObfuscatedCodeFileUtils } from '../../../src/cli/utils/ObfuscatedCodeFileUtils';
|
|
|
|
describe('ObfuscatedCodeFileUtils', () => {
|
|
let util: ObfuscatedCodeFileUtils;
|
|
|
|
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');
|
|
});
|
|
});
|