Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit a4db4c2

Browse files
feat: improve tests
1 parent 749d422 commit a4db4c2

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

templates/test/cjs.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ describe('cjs', () => {
55
it('should exported', () => {
66
expect(cjs).toEqual(src);
77
});
8+
9+
it('should export "raw" flag', () => {
10+
expect(cjs.raw).toEqual(true);
11+
});
812
});

templates/test/loader.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { getCompiler, compile, normalizeErrors, readAsset } from './helpers';
22

33
describe('loader', () => {
4-
it('should works', async () => {
4+
it('should work', async () => {
55
const compiler = getCompiler('simple.js');
66
const stats = await compile(compiler);
77

templates/test/name-option.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { compile, getCompiler, normalizeErrors, readAsset } from './helpers';
22

3-
describe('name option', () => {
4-
it('value', async () => {
3+
describe('"name" option', () => {
4+
it('should work with "Boolean" value equal "true"', async () => {
55
const compiler = getCompiler('simple.js', {
66
name: true,
77
});

0 commit comments

Comments
 (0)