feat: allow using KeyValueChanges as a pipe

This commit is contained in:
Pawel Kozlowski
2015-02-24 17:39:10 +01:00
committed by vsavkin
parent 33b503720a
commit 4a5d53c549
2 changed files with 29 additions and 9 deletions

View File

@ -131,10 +131,10 @@ export function main() {
if (isJsObject({})) {
describe('JsObject changes', () => {
it('should support JS Object', () => {
expect(KeyValueChanges.supports({})).toBeTruthy();
expect(KeyValueChanges.supports("not supported")).toBeFalsy();
expect(KeyValueChanges.supports(0)).toBeFalsy();
expect(KeyValueChanges.supports(null)).toBeFalsy();
expect(KeyValueChanges.supportsObj({})).toBeTruthy();
expect(KeyValueChanges.supportsObj("not supported")).toBeFalsy();
expect(KeyValueChanges.supportsObj(0)).toBeFalsy();
expect(KeyValueChanges.supportsObj(null)).toBeFalsy();
});
it('should do basic object watching', () => {