All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ducks.overlays.__tests__.selectors.test.js Maven / Gradle / Ivy

The newest version!
import { overlaysSelector, makeOverlayByIndex } from '../selectors'

const state = {
    overlays: [
        {
            some: 'overlay',
        },
    ],
}

describe('Проверка селекторов overlays', () => {
    it('overlaysSelector должен вернуть overlay', () => {
        expect(overlaysSelector(state)).toEqual(state.overlays)
    })
    it('makeOverlaysByName должен вернуть оверлей по индексу', () => {
        expect(makeOverlayByIndex(0)(state)).toEqual(state.overlays[0])
    })
})




© 2015 - 2024 Weber Informatics LLC | Privacy Policy