Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correctly return value for function #19403

Merged
merged 15 commits into from
Oct 30, 2024
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

exports[`Spartacus OMF Schematics: ng-add OMF feature eager loading should import appropriate modules 1`] = `
"import { NgModule } from '@angular/core';
import { OmfOrderModule } from "@spartacus/omf/order";
import { OmfRootModule } from "@spartacus/omf/root";

@NgModule({
declarations: [],
imports: [
OmfRootModule
OmfRootModule,
OmfOrderModule
]
})
export class OmfFeatureModule { }
Expand All @@ -16,12 +18,14 @@ export class OmfFeatureModule { }

exports[`Spartacus OMF Schematics: ng-add OMF feature general setup should add the feature using the lazy loading syntax 1`] = `
"import { NgModule } from '@angular/core';
import { OmfOrderModule } from "@spartacus/omf/order";
import { OmfRootModule } from "@spartacus/omf/root";

@NgModule({
declarations: [],
imports: [
OmfRootModule
OmfRootModule,
OmfOrderModule
]
})
export class OmfFeatureModule { }
Expand Down
2 changes: 1 addition & 1 deletion projects/schematics/src/shared/utils/feature-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ function isStaticallyImported(
if (
!staticImportExists(sourceFile, moduleConfig.importPath, moduleConfig.name)
) {
false;
return false;
}

const elements =
Expand Down
Loading