Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Jan 21, 2022
1 parent 9bdc196 commit d9cd722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/deno/common/terser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { minify } from 'http://localhost:8080/terser'
import { assert } from 'https://deno.land/[email protected]/testing/asserts.ts'

Deno.test('check terser minifiy', async () => {
var code = "function add(first, second) { return first + second; }";
var code = 'function add(first, second) { return first + second; }';
var result = await minify(code, { sourceMap: true });
assert(result.code === 'function add(n,d){return n+d}')
assert(JSON.parse(String(result.map)).names?.length === 3)
Expand Down

0 comments on commit d9cd722

Please sign in to comment.