mirror of
https://github.com/plankanban/planka.git
synced 2025-07-24 07:39:44 +02:00
Add test libs, update dependencies
This commit is contained in:
parent
cd6d929cbf
commit
16acd1b49c
24 changed files with 1692 additions and 159 deletions
|
@ -1,4 +1,4 @@
|
|||
import dequal from 'dequal';
|
||||
import { dequal } from 'dequal';
|
||||
import React, { useCallback, useEffect, useRef } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import dequal from 'dequal';
|
||||
import { dequal } from 'dequal';
|
||||
import React, { useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import dequal from 'dequal';
|
||||
import { dequal } from 'dequal';
|
||||
import React, { useCallback, useEffect, useRef } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import dequal from 'dequal';
|
||||
import { dequal } from 'dequal';
|
||||
import React, { useCallback } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import dequal from 'dequal';
|
||||
import { dequal } from 'dequal';
|
||||
import upperFirst from 'lodash/upperFirst';
|
||||
import camelCase from 'lodash/camelCase';
|
||||
import React, { useCallback, useEffect, useRef } from 'react';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import dequal from 'dequal';
|
||||
import { dequal } from 'dequal';
|
||||
import React, { useCallback, useEffect, useRef } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import dequal from 'dequal';
|
||||
import { dequal } from 'dequal';
|
||||
import pickBy from 'lodash/pickBy';
|
||||
import React, { useCallback, useMemo, useRef } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
|
6
client/src/setupTests.js
Normal file
6
client/src/setupTests.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
import { configure } from 'enzyme';
|
||||
import Adapter from 'enzyme-adapter-react-16';
|
||||
|
||||
import 'jest-enzyme';
|
||||
|
||||
configure({ adapter: new Adapter() });
|
11
client/src/utils/local-id.test.js
Normal file
11
client/src/utils/local-id.test.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { isLocalId } from './local-id';
|
||||
|
||||
describe('isLocalId', () => {
|
||||
test('is valid', () => {
|
||||
expect(isLocalId('local:1234567890')).toBeTruthy();
|
||||
});
|
||||
|
||||
test('is invalid', () => {
|
||||
expect(isLocalId('1234567890')).toBeFalsy();
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue