forked from umijs/qiankun
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add lifecycle check log at development environment (umijs#2604)
- Loading branch information
1 parent
fdb5f8a
commit c65c0cf
Showing
4 changed files
with
50 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const version = '3.0.0-rc.11'; | ||
export const version = '3.0.0-rc.15'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { expect, it } from 'vitest'; | ||
import { getValueType } from '../utils'; | ||
|
||
it('should return value type', () => { | ||
expect(getValueType(1)).toBe('Number'); | ||
expect(getValueType('1')).toBe('String'); | ||
expect(getValueType(true)).toBe('Boolean'); | ||
expect(getValueType(null)).toBe('Null'); | ||
expect(getValueType(undefined)).toBe('Undefined'); | ||
expect(getValueType({})).toBe('Object'); | ||
expect(getValueType([])).toBe('Array'); | ||
expect(getValueType(function () {})).toBe('Function'); | ||
expect(getValueType(Symbol())).toBe('Symbol'); | ||
expect(getValueType(new Date())).toBe('Date'); | ||
expect(getValueType(new RegExp(''))).toBe('RegExp'); | ||
expect(getValueType(new Error())).toBe('Error'); | ||
expect(getValueType(new Map())).toBe('Map'); | ||
expect(getValueType(new Set())).toBe('Set'); | ||
expect(getValueType(new WeakMap())).toBe('WeakMap'); | ||
expect(getValueType(new WeakSet())).toBe('WeakSet'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters