refactored DockerfilePathSelectComponent

This commit is contained in:
alecmerdler 2017-02-17 15:46:43 -08:00 committed by Joseph Schorr
parent 389a4cb1c4
commit 38e40665a7
8 changed files with 151 additions and 90 deletions

View file

@ -12,7 +12,7 @@ describe("RegexMatchViewComponent", () => {
var items: ({value: string})[];
beforeEach(() => {
items = [{value: "master"}, {value: "develop"}, {value: "production"}];
items = [{value: "heads/master"}, {value: "heads/develop"}, {value: "heads/production"}];
});
it("returns null if given invalid regex expression", () => {

View file

@ -41,6 +41,7 @@ import { Input, Component } from 'angular-ts-decorators';
})
export class RegexMatchViewComponent implements ng.IComponentController {
// FIXME: Use one-way data binding
@Input('=') private regex: string;
@Input('=') private items: any[];