MCPcopy
hub / github.com/angular/angular-cli / test

Function test

packages/angular/cli/src/utilities/memoize_spec.ts:69–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67
68 it('should error when used on non getters and methods', () => {
69 const test = () => {
70 class DummyError {
71 @memoize
72 set random(_value: number) {}
73 }
74
75 return new DummyError();
76 };
77
78 expect(test).toThrowError('Memoize decorator can only be used on methods or get accessors.');
79 });

Callers 1

findNodesFunction · 0.85

Calls 1

getRandomMethod · 0.80

Tested by

no test coverage detected