Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit e6f6d9c

Browse files
mmalerbaamcdnl
authored andcommitted
add moment and @angular/material-moment-adapter deps to stackblitz (#397)
1 parent fd82f3e commit e6f6d9c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/app/shared/stackblitz/stackblitz-writer.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ describe('StackblitzWriter', () => {
5252
});
5353

5454
it('should create form element', () => {
55-
expect(stackblitzWriter._createFormElement().outerHTML).toBe(
55+
expect(stackblitzWriter._createFormElement('index.ts').outerHTML).toBe(
5656
`<form action="https://plnkr.co/edit/?p=preview" method="post" target="_blank"></form>`);
5757
});
5858

5959
it('should add files to form input', () => {
60-
let form = stackblitzWriter._createFormElement();
60+
let form = stackblitzWriter._createFormElement('index.ts');
6161

6262
stackblitzWriter._addFileToForm(form, data, 'NoContent', 'test.ts', 'path/to/file');
6363
stackblitzWriter._addFileToForm(form, data, 'Test', 'test.html', 'path/to/file');

src/app/shared/stackblitz/stackblitz-writer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const materialVersion = '5.2.1';
2626
const dependencies = {
2727
'@angular/cdk': materialVersion,
2828
'@angular/material': materialVersion,
29+
'@angular/material-moment-adapter': materialVersion,
2930
'@angular/animations': angularVersion,
3031
'@angular/common': angularVersion,
3132
'@angular/compiler': angularVersion,
@@ -40,7 +41,8 @@ const dependencies = {
4041
'rxjs': '^5.5.2',
4142
'web-animations-js': '^2.3.1',
4243
'zone.js': '^0.8.14',
43-
'hammerjs': '^2.0.8'
44+
'hammerjs': '^2.0.8',
45+
'moment': '^2.18.1',
4446
};
4547

4648
/**

0 commit comments

Comments
 (0)