/*
 * Copyright (c) 2024 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import e from 'assert';
require('./commonjs_export_01');
var f = require('./commonjs_export_01');
e(f.exportApi1 === 'commonjs');
e(f.exportApi2(2) === 3);
e(f.api() === 'api');
e(f.constVal === 2);
const { classExport3Alias: g, exportObj3: h } = require('./commonjs_export_01');
e(h.obj_prop3 === 3);
let i = new g();
e(i.class3_prop1 === 3);
const j = require('./commonjs_export_02');
let k = new j();
e(k.class2_prop1 === 2);
const l = require('./commonjs_export_03');
e(l.obj_prop1 === 1);
e(l.obj_prop2.inner_prop1 === 2);
const { classExport1: c, arrowFunc: m } = require('./commonjs_export_04');
let n = new c();
e(n.class1_prop1 === 1);
e(m(2) === 12);
