refactored DockerfilePathSelectComponent
This commit is contained in:
parent
389a4cb1c4
commit
38e40665a7
8 changed files with 151 additions and 90 deletions
|
@ -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", () => {
|
||||
|
|
|
@ -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[];
|
||||
|
||||
|
|
Reference in a new issue