Add tests for Map components
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
bd285f8ee5
commit
fc52d5ae3c
110
packages/learn/src/__mocks__/map-nodes.js
Normal file
110
packages/learn/src/__mocks__/map-nodes.js
Normal file
@@ -0,0 +1,110 @@
|
||||
export default [
|
||||
{
|
||||
fields: {
|
||||
slug: '/super-block-one/block-a/challenge-one',
|
||||
blockName: 'Block A'
|
||||
},
|
||||
block: 'block-a',
|
||||
title: 'Challenge One',
|
||||
isRequired: false,
|
||||
isPrivate: false,
|
||||
superBlock: 'Super Block One',
|
||||
dashedName: 'challenge-one'
|
||||
},
|
||||
{
|
||||
fields: {
|
||||
slug: '/super-block-one/block-a/challenge-two',
|
||||
blockName: 'Block A'
|
||||
},
|
||||
block: 'block-a',
|
||||
title: 'Challenge Two',
|
||||
isRequired: false,
|
||||
isPrivate: false,
|
||||
superBlock: 'Super Block One',
|
||||
dashedName: 'challenge-two'
|
||||
},
|
||||
{
|
||||
fields: {
|
||||
slug: '/super-block-one/block-b/challenge-one',
|
||||
blockName: 'Block B'
|
||||
},
|
||||
block: 'block-b',
|
||||
title: 'Challenge One',
|
||||
isRequired: false,
|
||||
isPrivate: false,
|
||||
superBlock: 'Super Block One',
|
||||
dashedName: 'challenge-one'
|
||||
},
|
||||
{
|
||||
fields: {
|
||||
slug: '/super-block-one/block-b/challenge-two',
|
||||
blockName: 'Block B'
|
||||
},
|
||||
block: 'block-b',
|
||||
title: 'Challenge Two',
|
||||
isRequired: false,
|
||||
isPrivate: false,
|
||||
superBlock: 'Super Block One',
|
||||
dashedName: 'challenge-two'
|
||||
},
|
||||
{
|
||||
fields: {
|
||||
slug: '/super-block-one/block-c/challenge-one',
|
||||
blockName: 'Block C'
|
||||
},
|
||||
block: 'block-c',
|
||||
title: 'Challenge One',
|
||||
isRequired: false,
|
||||
isPrivate: true,
|
||||
superBlock: 'Super Block One',
|
||||
dashedName: 'challenge-one'
|
||||
},
|
||||
{
|
||||
fields: {
|
||||
slug: '/super-block-one/block-a/challenge-one',
|
||||
blockName: 'Block A'
|
||||
},
|
||||
block: 'block-a',
|
||||
title: 'Challenge One',
|
||||
isRequired: false,
|
||||
isPrivate: false,
|
||||
superBlock: 'Super Block Two',
|
||||
dashedName: 'challenge-one'
|
||||
},
|
||||
{
|
||||
fields: {
|
||||
slug: '/super-block-one/block-a/challenge-two',
|
||||
blockName: 'Block A'
|
||||
},
|
||||
block: 'block-a',
|
||||
title: 'Challenge Two',
|
||||
isRequired: false,
|
||||
isPrivate: false,
|
||||
superBlock: 'Super Block Two',
|
||||
dashedName: 'challenge-two'
|
||||
},
|
||||
{
|
||||
fields: {
|
||||
slug: '/super-block-one/block-b/challenge-one',
|
||||
blockName: 'Block B'
|
||||
},
|
||||
block: 'block-b',
|
||||
title: 'Challenge One',
|
||||
isRequired: false,
|
||||
isPrivate: false,
|
||||
superBlock: 'Super Block Two',
|
||||
dashedName: 'challenge-one'
|
||||
},
|
||||
{
|
||||
fields: {
|
||||
slug: '/super-block-one/block-b/challenge-two',
|
||||
blockName: 'Block B'
|
||||
},
|
||||
block: 'block-b',
|
||||
title: 'Challenge Two',
|
||||
isRequired: false,
|
||||
isPrivate: false,
|
||||
superBlock: 'Super Block Two',
|
||||
dashedName: 'challenge-two'
|
||||
}
|
||||
];
|
Reference in New Issue
Block a user