How to use the corvid-local-test-utils.siteCreators.lightbox function in corvid-local-test-utils

To help you get started, we’ve selected a few corvid-local-test-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wix-incubator / corvid / packages / corvid-local-site / src / testkit / localSiteBuilder.js View on Github external
return sc.matchItem(siteItem, {
    [sc.page]: () =>
      pickValue({
        page: file[0].content,
        code: file[1].content,
        tsConfig: file[2].content,
        typings: file[3].content
      }),
    [sc.pageWithCode]: () =>
      pickValue({
        page: file[0].content,
        code: file[1].content,
        tsConfig: file[2].content,
        typings: file[3].content
      }),
    [sc.lightbox]: () =>
      pickValue({
        page: file[0].content,
        code: file[1].content,
        tsConfig: file[2].content,
        typings: file[3].content
      }),
    [sc.lightboxWithCode]: () =>
      pickValue({
        page: file[0].content,
        code: file[1].content,
        tsConfig: file[2].content,
        typings: file[3].content
      }),
    [sc.commonComponents]: () =>
      pickValue({
        page: file[0].content,
github wix-incubator / corvid / packages / corvid-fake-local-mode-editor / src / editorSiteBuilder.js View on Github external
...siteItems.map(item =>
      sc.matchItem(item, {
        [sc.page]: page,
        [sc.pageWithCode]: pageWithCode,
        [sc.lightbox]: lightbox,
        [sc.lightboxWithCode]: lightboxWithCode,
        [sc.router]: router,
        [sc.menu]: menu,
        [sc.colors]: colors,
        [sc.fonts]: fonts,
        [sc.theme]: theme,
        [sc.topLevelStyles]: topLevelStyles,
        [sc.commonComponents]: commonComponents,
        [sc.multilingualInfo]: multilingualInfo,
        [sc.siteInfo]: siteInfo,
        [sc.version]: version,
        [sc.publicCode]: publicCodeFile,
        [sc.backendCode]: backendCodeFile,
        [sc.collectionSchema]: collectionSchema,
        [sc.corvidPackageJson]: corvidPackageJson,
        [sc.masterPageCode]: masterPageCode