Skip to content

Commit

Permalink
removed unecessary tests and moved utils
Browse files Browse the repository at this point in the history
  • Loading branch information
ylkhayat committed Sep 19, 2021
1 parent d8dcf63 commit acd0d32
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion __tests__/Container.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { render, fireEvent } from '@testing-library/react-native'
import React from 'react'
import { Pressable, View } from 'react-native'
import Container from '../src/Container'
import { tap } from './utils'
import { tap } from '../src/utils'

describe("Container testing suite | handling different use cases of the Container's behavior.", () => {
test('Container renders a single child', () => {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
getLength,
reset
} from '../src/ref'
import { tap } from './utils'
import { tap } from '../src/utils'

describe('Controller testing suite | handling different use cases of the Controller behavior.', () => {
afterEach(() => {
Expand Down
Empty file removed __tests__/ref.js
Empty file.
2 changes: 1 addition & 1 deletion __tests__/utils.js → src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { fireEvent } from '@testing-library/react-native'

const tap = (node) => {
const tap = (node: any) => {
fireEvent(node, 'onResponderRelease')
}

Expand Down

0 comments on commit acd0d32

Please sign in to comment.