forked from XiaoMi/hiui
-
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.
- Loading branch information
Showing
32 changed files
with
1,477 additions
and
220 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,8 +1,8 @@ | ||
--- | ||
to: <%= h.hooksDir(`${name}/__tests__/${name}.test.js`) %> | ||
--- | ||
const <%= h.hump(name) %> = require('../src'); | ||
const <%= h.hump(name) %> = require('../src') | ||
|
||
describe('@hi-ui/<%= name %>', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
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,8 +1,8 @@ | ||
--- | ||
to: <%= h.uiDir(`${name}/__tests__/${name}.test.js`) %> | ||
--- | ||
const <%= h.camelCase(name) %> = require('../src'); | ||
const <%= h.camelCase(name) %> = require('../src') | ||
|
||
describe('@hi-ui/<%= name %>', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
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,8 +1,8 @@ | ||
--- | ||
to: <%= h.utilsDir(`${name}/__tests__/${name}.test.js`) %> | ||
--- | ||
const <%= h.hump(name) %> = require('../src'); | ||
const <%= h.hump(name) %> = require('../src') | ||
|
||
describe('@hi-ui/<%= name %>', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
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,9 @@ | ||
/** @type {import('@ts-jest/dist/types').InitialOptionsTsJest} */ | ||
module.exports = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'jsdom', | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], | ||
moduleNameMapper: { | ||
'\\.(css|scss)$|style-inject': '<rootDir>/mock.js', | ||
}, | ||
} |
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,11 @@ | ||
const path = require('path') | ||
|
||
module.exports = { | ||
process(src, filename, config, options) { | ||
return ( | ||
'module.exports = { default: () => { return ' + | ||
JSON.stringify(path.basename(filename)) + | ||
'}};' | ||
) | ||
}, | ||
} |
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
6 changes: 3 additions & 3 deletions
6
packages/hooks/use-merge-refs/__tests__/use-merge-refs.test.js
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,5 +1,5 @@ | ||
const useMergeRefs = require('../src'); | ||
const useMergeRefs = require('../src') | ||
|
||
describe('@hi-ui/use-merge-refs', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
6 changes: 3 additions & 3 deletions
6
packages/hooks/use-uncontrolled-state/__tests__/use-uncontrolled-state.test.js
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,5 +1,5 @@ | ||
const use-uncontrolled-state = require('../src'); | ||
const useUncontrolledState = require('../src') | ||
|
||
describe('@hi-ui/use-uncontrolled-state', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
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,5 +1,5 @@ | ||
const Icons = require("../src"); | ||
const Icons = require('../src') | ||
|
||
describe("@hi-ui/icons", () => { | ||
it("needs tests"); | ||
}); | ||
describe('@hi-ui/icons', () => { | ||
it('needs tests', () => {}) | ||
}) |
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,5 +1,7 @@ | ||
const Alert = require('../src'); | ||
const Alert = require('../src') | ||
|
||
describe('@hi-ui/alert', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => { | ||
expect(Array.isArray([])).toEqual(true) | ||
}) | ||
}) |
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,5 +1,5 @@ | ||
const Avatar = require('../src'); | ||
const Avatar = require('../src') | ||
|
||
describe('@hi-ui/avatar', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
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,5 +1,5 @@ | ||
const Breadcrumb = require('../src'); | ||
const Breadcrumb = require('../src') | ||
|
||
describe('@hi-ui/breadcrumb', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
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,5 +1,5 @@ | ||
const Checkbox = require('../src'); | ||
const Checkbox = require('../src') | ||
|
||
describe('@hi-ui/checkbox', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
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,5 +1,5 @@ | ||
const Collapse = require('../src'); | ||
const Collapse = require('../src') | ||
|
||
describe('@hi-ui/collapse', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
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,5 +1,5 @@ | ||
const Counter = require('../src'); | ||
const Counter = require('../src') | ||
|
||
describe('@hi-ui/counter', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
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,5 +1,5 @@ | ||
const EmptyState = require('../src') | ||
|
||
describe('@hi-ui/empty-state', () => { | ||
it('needs tests') | ||
it('needs tests', () => {}) | ||
}) |
This file was deleted.
Oops, something went wrong.
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,5 +1,5 @@ | ||
const Loading = require('../src'); | ||
const Loading = require('../src') | ||
|
||
describe('@hi-ui/loading', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
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,5 +1,5 @@ | ||
const Rating = require('../src') | ||
|
||
describe('@hi-ui/rating', () => { | ||
it('needs tests') | ||
it('needs tests', () => {}) | ||
}) |
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,5 +1,5 @@ | ||
const Stepper = require('../src'); | ||
const Stepper = require('../src') | ||
|
||
describe('@hi-ui/stepper', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
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,5 +1,5 @@ | ||
const Switch = require('../src'); | ||
const Switch = require('../src') | ||
|
||
describe('@hi-ui/switch', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
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,5 +1,5 @@ | ||
const Tag = require('../src'); | ||
const Tag = require('../src') | ||
|
||
describe('@hi-ui/tag', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
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,5 +1,5 @@ | ||
const Tree = require('../src'); | ||
// const Tree = require('../src') | ||
|
||
describe('@hi-ui/tree', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
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,5 +1,5 @@ | ||
const container = require('../src'); | ||
const container = require('../src') | ||
|
||
describe('@hi-ui/container', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
const env = require('..') | ||
|
||
describe('@hi-ui/env', () => { | ||
it('needs tests') | ||
it('needs tests', () => {}) | ||
}) |
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,5 +1,5 @@ | ||
const request = require('../src'); | ||
const request = require('../src') | ||
|
||
describe('@hi-ui/request', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
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,5 +1,5 @@ | ||
const times = require('../src'); | ||
const times = require('../src') | ||
|
||
describe('@hi-ui/times', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
6 changes: 3 additions & 3 deletions
6
packages/utils/type-assertion/__tests__/type-assertion.test.js
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,5 +1,5 @@ | ||
const typeAssertion = require('../src'); | ||
const typeAssertion = require('../src') | ||
|
||
describe('@hi-ui/type-assertion', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
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,7 +1,3 @@ | ||
'use strict'; | ||
|
||
const hiBuild = require('..'); | ||
|
||
describe('@hi-ui/hi-build', () => { | ||
it('needs tests'); | ||
}); | ||
it('needs tests', () => {}) | ||
}) |
Oops, something went wrong.