Demo entry 6336612

test

   

Submitted by anonymous on Dec 07, 2016 at 22:33
Language: JavaScript. Code size: 364 Bytes.

	describe('service container', () => {
				 describe('when we resolve service from base instance', () => {
				    it('it should expose service', () => {
				      Service.default.register(new TestService1());
				      const s = Service.default.resolve<TestService>(TestService);
				      expect(s.hello()).toBe('hello 1');
				    });
				  });
			  });

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).