Skip to content

Commit

Permalink
Revert "cdc fix - upport to 6.6 " (#18079)
Browse files Browse the repository at this point in the history
  • Loading branch information
anjana-bl authored Nov 7, 2023
1 parent b57713e commit 27c0833
Show file tree
Hide file tree
Showing 10 changed files with 84 additions and 372 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Spartacus CDC schematics: ng-add CDC-B2B feature eager loading should import appropriate modules 1`] = `
exports[`Spartacus CDC schematics: ng-add CDC feature eager loading should import appropriate modules 1`] = `
"import { NgModule } from '@angular/core';
import { CdcModule } from "@spartacus/cdc";
import { cdcTranslationChunksConfig, cdcTranslations } from "@spartacus/cdc/assets";
Expand Down Expand Up @@ -42,7 +42,7 @@ export class CdcFeatureModule { }
"
`;
exports[`Spartacus CDC schematics: ng-add CDC-B2B feature general setup should add the feature using the lazy loading syntax 1`] = `
exports[`Spartacus CDC schematics: ng-add CDC feature general setup should add the feature using the lazy loading syntax 1`] = `
"import { NgModule } from '@angular/core';
import { cdcTranslationChunksConfig, cdcTranslations } from "@spartacus/cdc/assets";
import { CdcConfig, CdcRootModule, CDC_FEATURE } from "@spartacus/cdc/root";
Expand Down Expand Up @@ -82,7 +82,7 @@ export class CdcFeatureModule { }
"
`;
exports[`Spartacus CDC schematics: ng-add CDC-B2B feature general setup should install the appropriate dependencies 1`] = `
exports[`Spartacus CDC schematics: ng-add CDC feature general setup should install the appropriate dependencies 1`] = `
"import { NgModule } from '@angular/core';
import { CDCUserAccountModule } from "@spartacus/cdc/user-account";
import { UserAccountModule } from "@spartacus/user/account";
Expand All @@ -98,7 +98,7 @@ export class UserAccountWrapperModule { }
"
`;
exports[`Spartacus CDC schematics: ng-add CDC-B2B feature general setup should install the appropriate dependencies 2`] = `
exports[`Spartacus CDC schematics: ng-add CDC feature general setup should install the appropriate dependencies 2`] = `
"import { NgModule } from '@angular/core';
import { CDCUserProfileModule } from "@spartacus/cdc/user-profile";
import { UserProfileModule } from "@spartacus/user/profile";
Expand All @@ -114,7 +114,7 @@ export class UserProfileWrapperModule { }
"
`;
exports[`Spartacus CDC schematics: ng-add CDC-B2B feature general setup should install the appropriate dependencies 3`] = `
exports[`Spartacus CDC schematics: ng-add CDC feature general setup should install the appropriate dependencies 3`] = `
"import { NgModule } from '@angular/core';
import { CdcAdministrationModule } from "@spartacus/cdc/organization/administration";
import { AdministrationModule } from "@spartacus/organization/administration";
Expand All @@ -130,7 +130,7 @@ export class AdministrationWrapperModule { }
"
`;
exports[`Spartacus CDC schematics: ng-add CDC-B2B feature general setup should install the appropriate dependencies 4`] = `
exports[`Spartacus CDC schematics: ng-add CDC feature general setup should install the appropriate dependencies 4`] = `
"import { NgModule } from '@angular/core';
import { CDCB2BRegisterModule } from "@spartacus/cdc/organization/user-registration";
import { OrganizationUserRegistrationModule } from "@spartacus/organization/user-registration";
Expand All @@ -146,157 +146,7 @@ export class OrganizationUserRegistrationWrapperModule { }
"
`;
exports[`Spartacus CDC schematics: ng-add CDC-B2B feature validation of jsSDKUrl should set the given javascriptUrl 1`] = `
"import { NgModule } from '@angular/core';
import { cdcTranslationChunksConfig, cdcTranslations } from "@spartacus/cdc/assets";
import { CdcConfig, CdcRootModule, CDC_FEATURE } from "@spartacus/cdc/root";
import { CmsConfig, I18nConfig, provideConfig } from "@spartacus/core";
@NgModule({
declarations: [],
imports: [
CdcRootModule
],
providers: [provideConfig(<CmsConfig>{
featureModules: {
[CDC_FEATURE]: {
module: () =>
import('@spartacus/cdc').then((m) => m.CdcModule),
},
}
}),
provideConfig(<I18nConfig>{
i18n: {
resources: cdcTranslations,
chunks: cdcTranslationChunksConfig,
},
}),
provideConfig(<CdcConfig>{
cdc: [
{
baseSite: 'electronics-spa',
javascriptUrl: '<dc>.gigya.com/<api-key>',
sessionExpiration: 3600
},
],
})
]
})
export class CdcFeatureModule { }
"
`;
exports[`Spartacus CDC schematics: ng-add CDC-B2C feature eager loading should import appropriate modules 1`] = `
"import { NgModule } from '@angular/core';
import { CdcModule } from "@spartacus/cdc";
import { cdcTranslationChunksConfig, cdcTranslations } from "@spartacus/cdc/assets";
import { CdcConfig, CdcRootModule } from "@spartacus/cdc/root";
import { CDCUserAccountModule } from "@spartacus/cdc/user-account";
import { CDCUserProfileModule } from "@spartacus/cdc/user-profile";
import { I18nConfig, provideConfig } from "@spartacus/core";
@NgModule({
declarations: [],
imports: [
CdcRootModule,
CdcModule,
CDCUserAccountModule,
CDCUserProfileModule
],
providers: [provideConfig(<I18nConfig>{
i18n: {
resources: cdcTranslations,
chunks: cdcTranslationChunksConfig,
},
}),
provideConfig(<CdcConfig>{
cdc: [
{
baseSite: 'electronics-spa',
javascriptUrl: 'JS_SDK_URL_PLACEHOLDER',
sessionExpiration: 3600
},
],
})
]
})
export class CdcFeatureModule { }
"
`;
exports[`Spartacus CDC schematics: ng-add CDC-B2C feature general setup should add the feature using the lazy loading syntax 1`] = `
"import { NgModule } from '@angular/core';
import { cdcTranslationChunksConfig, cdcTranslations } from "@spartacus/cdc/assets";
import { CdcConfig, CdcRootModule, CDC_FEATURE } from "@spartacus/cdc/root";
import { CmsConfig, I18nConfig, provideConfig } from "@spartacus/core";
@NgModule({
declarations: [],
imports: [
CdcRootModule
],
providers: [provideConfig(<CmsConfig>{
featureModules: {
[CDC_FEATURE]: {
module: () =>
import('@spartacus/cdc').then((m) => m.CdcModule),
},
}
}),
provideConfig(<I18nConfig>{
i18n: {
resources: cdcTranslations,
chunks: cdcTranslationChunksConfig,
},
}),
provideConfig(<CdcConfig>{
cdc: [
{
baseSite: 'electronics-spa',
javascriptUrl: 'JS_SDK_URL_PLACEHOLDER',
sessionExpiration: 3600
},
],
})
]
})
export class CdcFeatureModule { }
"
`;
exports[`Spartacus CDC schematics: ng-add CDC-B2C feature general setup should install the appropriate dependencies 1`] = `
"import { NgModule } from '@angular/core';
import { CDCUserAccountModule } from "@spartacus/cdc/user-account";
import { UserAccountModule } from "@spartacus/user/account";
@NgModule({
declarations: [],
imports: [
UserAccountModule,
CDCUserAccountModule
]
})
export class UserAccountWrapperModule { }
"
`;
exports[`Spartacus CDC schematics: ng-add CDC-B2C feature general setup should install the appropriate dependencies 2`] = `
"import { NgModule } from '@angular/core';
import { CDCUserProfileModule } from "@spartacus/cdc/user-profile";
import { UserProfileModule } from "@spartacus/user/profile";
@NgModule({
declarations: [],
imports: [
UserProfileModule,
CDCUserProfileModule
]
})
export class UserProfileWrapperModule { }
"
`;
exports[`Spartacus CDC schematics: ng-add CDC-B2C feature validation of jsSDKUrl should set the given javascriptUrl 1`] = `
exports[`Spartacus CDC schematics: ng-add CDC feature validation of jsSDKUrl should set the given javascriptUrl 1`] = `
"import { NgModule } from '@angular/core';
import { cdcTranslationChunksConfig, cdcTranslations } from "@spartacus/cdc/assets";
import { CdcConfig, CdcRootModule, CDC_FEATURE } from "@spartacus/cdc/root";
Expand Down
Loading

0 comments on commit 27c0833

Please sign in to comment.