Skip to content

Commit

Permalink
chore: auto update samples
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 19, 2024
1 parent 2c9dba3 commit a174b14
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ describe('AppComponent', () => {
})
);

it('should create the app', () => {
it('create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app).toBeTruthy();
});

it(`should have as title 'liferay-sample-custom-element-3'`, () => {
it(`have as title 'liferay-sample-custom-element-3'`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app.title).toEqual('liferay-sample-custom-element-3');
});

it('should render title', () => {
it('render title', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.nativeElement as HTMLElement;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {Component, Input} from '@angular/core';

@Component({
selector: 'liferay-sample-custom-element-3',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
templateUrl: './app.component.html',
})
export class AppComponent {
@Input('title') title = 'liferay-sample-custom-element-3';
Expand Down
2 changes: 1 addition & 1 deletion liferay-sample-custom-element-angular/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ import {AppModule} from './app/app.module';

platformBrowserDynamic()
.bootstrapModule(AppModule)
.catch((err) => console.error(err));
.catch((error) => console.error(error));
6 changes: 3 additions & 3 deletions liferay-sample-custom-element-react-clayui/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ module.exports = {
entry: {
index: './assets/index.js',
},
experiments: {
outputModule: true,
},
externals: {

// Add all @clayui dependencies of your project below here (as done for `@clayui/badge`)
Expand All @@ -21,9 +24,6 @@ module.exports = {
'react': 'react',
'react-dom': 'react-dom',
},
experiments: {
outputModule: true,
},
mode: DEVELOPMENT ? 'development' : 'production',
optimization: {
minimize: !DEVELOPMENT,
Expand Down
6 changes: 3 additions & 3 deletions liferay-sample-custom-element-react-dom/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ module.exports = {
entry: {
index: './assets/index.js',
},
experiments: {
outputModule: true,
},
externals: {
'react': 'react',
'react-dom': 'react-dom',
},
experiments: {
outputModule: true,
},
mode: DEVELOPMENT ? 'development' : 'production',
module: {
rules: [
Expand Down

0 comments on commit a174b14

Please sign in to comment.