Skip to content

Commit

Permalink
[unit-tests-only] move typescript tests to unit folder
Browse files Browse the repository at this point in the history
  • Loading branch information
individual-it committed Jun 29, 2021
1 parent 19b454b commit 82d6820
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Cache from './cache'
import Cache from '../../../src/cache/cache'

const newCache = <T>(vs: T[], ttl?: number, capacity?: number): Cache<number, T> => {
const cache = new Cache<number, T>({ ttl, capacity })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HttpClient } from './client'
import { HttpClient } from '../../../src/http'
import mockAxios from 'jest-mock-axios'

beforeEach(mockAxios.reset)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VisibilityObserver } from './visibility'
import { VisibilityObserver } from '../../../src/observer'

let callback
let mockIntersectionObserver
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { encodePath } from './encodePath'
import { encodePath } from '../../../src/utils'

describe('encodePath', () => {
it('is empty if input is empty', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { objectKeys } from './objectKeys'
import { objectKeys } from '../../../src/utils'

describe('objectKeys', () => {
it('should return the correct keys', () => {
Expand Down

0 comments on commit 82d6820

Please sign in to comment.