Skip to content

Commit

Permalink
test(finnish): Add property spread syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Jan 30, 2018
1 parent 154dc71 commit d348f88
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion fixtures/finnish-with-$/fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import "rxjs/add/observable/of";

const someObservable$ = Observable.of(0);

const someEmptyObject = {};
const someObject = { someKey$: someObservable$ };
const { someKey$ } = someObject;
const { ...someEmptyObject, someKey$ } = someObject;
const { someKey$: someRenamedKey$ } = someObject;

const someArray = [someObservable$];
Expand Down
3 changes: 2 additions & 1 deletion fixtures/finnish-without-$/fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import "rxjs/add/observable/of";

const someObservable = Observable.of(0);

const someEmptyObject = {};
const someObject = { someKey: someObservable };
const { someKey } = someObject;
const { ...someEmptyObject, someKey } = someObject;
const { someKey: someRenamedKey } = someObject;

const someArray = [someObservable];
Expand Down
3 changes: 2 additions & 1 deletion fixtures/no-finnish-with-$/fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import "rxjs/add/observable/of";

const someObservable$ = Observable.of(0);

const someEmptyObject = {};
const someObject = { someKey$: someObservable$ };
const { someKey$ } = someObject;
const { ...someEmptyObject, someKey$ } = someObject;
const { someKey$: someRenamedKey$ } = someObject;

const someArray = [someObservable$];
Expand Down
3 changes: 2 additions & 1 deletion fixtures/no-finnish-without-$/fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import "rxjs/add/observable/of";

const someObservable = Observable.of(0);

const someEmptyObject = {};
const someObject = { someKey: someObservable };
const { someKey } = someObject;
const { ...someEmptyObject, someKey } = someObject;
const { someKey: someRenamedKey } = someObject;

const someArray = [someObservable];
Expand Down

0 comments on commit d348f88

Please sign in to comment.