mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
Fix lint
This commit is contained in:
parent
8a8b2b17a7
commit
aa74936e8a
|
@ -21,6 +21,7 @@ describe('Immutable', function () {
|
||||||
const stringified: { [key: string]: string } = {};
|
const stringified: { [key: string]: string } = {};
|
||||||
describe('Stringify', function () {
|
describe('Stringify', function () {
|
||||||
Object.keys(data).forEach(function (key) {
|
Object.keys(data).forEach(function (key) {
|
||||||
|
// eslint-disable-next-line jest/valid-title
|
||||||
it(key, function () {
|
it(key, function () {
|
||||||
stringified[key] = stringify(data[key as keyof typeof data]);
|
stringified[key] = stringify(data[key as keyof typeof data]);
|
||||||
expect(stringified[key]).toMatchSnapshot();
|
expect(stringified[key]).toMatchSnapshot();
|
||||||
|
@ -30,6 +31,7 @@ describe('Immutable', function () {
|
||||||
|
|
||||||
describe('Parse', function () {
|
describe('Parse', function () {
|
||||||
Object.keys(data).forEach(function (key) {
|
Object.keys(data).forEach(function (key) {
|
||||||
|
// eslint-disable-next-line jest/valid-title
|
||||||
it(key, function () {
|
it(key, function () {
|
||||||
expect(parse(stringified[key])).toEqual(data[key as keyof typeof data]);
|
expect(parse(stringified[key])).toEqual(data[key as keyof typeof data]);
|
||||||
});
|
});
|
||||||
|
@ -142,9 +144,11 @@ describe('Immutable', function () {
|
||||||
const stringified = serializeCustom.stringify(
|
const stringified = serializeCustom.stringify(
|
||||||
data[key as keyof typeof data]
|
data[key as keyof typeof data]
|
||||||
);
|
);
|
||||||
|
// eslint-disable-next-line jest/valid-title
|
||||||
it(key, function () {
|
it(key, function () {
|
||||||
const deserialized = serializeCustom.parse(stringified);
|
const deserialized = serializeCustom.parse(stringified);
|
||||||
expect(deserialized).toEqual(data[key as keyof typeof data]);
|
expect(deserialized).toEqual(data[key as keyof typeof data]);
|
||||||
|
// eslint-disable-next-line jest/no-conditional-expect
|
||||||
if (key === 'map' || key === 'orderedMap') {
|
if (key === 'map' || key === 'orderedMap') {
|
||||||
const deserializedDefault = parse(stringified);
|
const deserializedDefault = parse(stringified);
|
||||||
expect(
|
expect(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user