11import assert from "assert"
2- import { getTerserOptions } from "../src"
2+ import { buildTerserOptions } from "../src/builder "
33
44describe ( "Terser-Config-Atomic" , ( ) => {
55 it ( "production" , ( ) => {
6- const TerserOptions = getTerserOptions ( "production" , undefined )
6+ const TerserOptions = buildTerserOptions ( "production" , undefined )
77
88 expect ( typeof TerserOptions ) . toBe ( "object" )
99 assert ( typeof TerserOptions . compress === "object" )
@@ -20,7 +20,7 @@ describe("Terser-Config-Atomic", () => {
2020 it ( "development" , ( ) => {
2121 process . env . NODE_ENV = "development"
2222
23- const TerserOptions = getTerserOptions ( "development" , undefined )
23+ const TerserOptions = buildTerserOptions ( "development" , undefined )
2424
2525 expect ( typeof TerserOptions ) . toBe ( "object" )
2626 expect ( TerserOptions . compress ) . toBe ( false )
@@ -30,7 +30,7 @@ describe("Terser-Config-Atomic", () => {
3030 it ( "test" , ( ) => {
3131 process . env . NODE_ENV = "test"
3232
33- const TerserOptions = getTerserOptions ( "test" , undefined )
33+ const TerserOptions = buildTerserOptions ( "test" , undefined )
3434
3535 expect ( typeof TerserOptions ) . toBe ( "object" )
3636 assert ( typeof TerserOptions . compress === "object" )
0 commit comments