1
0
mirror of https://github.com/seejohnrun/haste-server.git synced 2026-02-10 16:01:32 +00:00

add relative paths

This commit is contained in:
Yusuf Yilmaz
2022-06-06 19:38:20 +02:00
parent ab47249505
commit 21aa23dd28
26 changed files with 71 additions and 67 deletions

View File

@@ -1,11 +1,11 @@
import Generator from '../../src/lib/key-generators/dictionary'
import Generator from 'src/lib/key-generators/dictionary'
jest.mock('fs', () => ({
readFile: jest.fn().mockImplementation((_, a, callback) =>
callback(null, 'cat'),
)
}))
readFile: jest
.fn()
.mockImplementation((_, a, callback) => callback(null, 'cat'))
}))
describe('DictionaryGenerator', () => {
describe('options', () => {
it('should throw an error if given no options or path', () => {

View File

@@ -1,5 +1,5 @@
/* eslint-disable jest/no-conditional-expect */
import Generator from '../../src/lib/key-generators/phonetic'
import Generator from 'src/lib/key-generators/phonetic'
const vowels = 'aeiou';
const consonants = 'bcdfghjklmnpqrstvwxyz';

View File

@@ -1,4 +1,4 @@
import Generator from '../../src/lib/key-generators/random'
import Generator from 'src/lib/key-generators/random'
describe('RandomKeyGenerator', () => {
describe('generation', () => {