File size: 393 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import { getBlockedSites } from 'calypso/state/reader/site-blocks/selectors';
describe( 'getBlockedSites()', () => {
test( 'should return an array of blocked site IDs', () => {
const state = {
reader: {
siteBlocks: {
items: {
123: true,
124: false,
125: true,
},
},
},
};
expect( getBlockedSites( state ) ).toEqual( [ 123, 125 ] );
} );
} );
|