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

chore: add moment and @angular/material-moment-adapter deps to stackblitz #397

Merged
merged 1 commit into from
Feb 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app/shared/stackblitz/stackblitz-writer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ describe('StackblitzWriter', () => {
});

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

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

stackblitzWriter._addFileToForm(form, data, 'NoContent', 'test.ts', 'path/to/file');
stackblitzWriter._addFileToForm(form, data, 'Test', 'test.html', 'path/to/file');
Expand Down
4 changes: 3 additions & 1 deletion src/app/shared/stackblitz/stackblitz-writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const materialVersion = '5.2.1';
const dependencies = {
'@angular/cdk': materialVersion,
'@angular/material': materialVersion,
'@angular/material-moment-adapter': materialVersion,
'@angular/animations': angularVersion,
'@angular/common': angularVersion,
'@angular/compiler': angularVersion,
Expand All @@ -40,7 +41,8 @@ const dependencies = {
'rxjs': '^5.5.2',
'web-animations-js': '^2.3.1',
'zone.js': '^0.8.14',
'hammerjs': '^2.0.8'
'hammerjs': '^2.0.8',
'moment': '^2.18.1',
};

/**
Expand Down