Skip to content

Commit 45a9fdb

Browse files
committed
style(test): remove debug logs
1 parent 6ed54d4 commit 45a9fdb

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

__test__/atom/lane.spec.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ describe('lane model', () => {
5050
() => {
5151
// @ts-ignore
5252
const { count, setCount } = useStore('Shared')
53-
console.group('count: ', count)
54-
console.group('setCount: ', setCount)
5553
renderTimes += 1
5654
return { renderTimes, count, setCount }
5755
},
@@ -110,7 +108,6 @@ describe('lane model', () => {
110108

111109
act(() => {
112110
expect(subscribeTimes).toEqual(2)
113-
console.error('result.current.state: ', result.current.state)
114111
expect(result.current.state.count).toBe(5)
115112
})
116113

__test__/atom/migrate.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ describe('migrate test', () => {
77
const wrapper = Provider
88
const store = createStore(() => {
99
const [state, setState] = useAtom({ count: 0, otherKey: 'key' })
10-
console.error('store state: ', state)
1110
const actions = {
1211
add: (params: number) => {
1312
return setState({

src/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,6 @@ const useStore = (modelName: string, selector?: Function) => {
498498
class Provider extends PureComponent<{}, Global['State']> {
499499
state = Global.State
500500
render() {
501-
console.info('Provider rerender!', this.state)
502501
const { children } = this.props
503502
Global.Setter.classSetter = this.setState.bind(this)
504503
return (

0 commit comments

Comments
 (0)