Commit f885aaa6 authored by nanahira's avatar nanahira

unit tests

parent a16d2ed6
Pipeline #13772 passed with stages
in 1 minute and 16 seconds
...@@ -155,13 +155,9 @@ describe('On service', () => { ...@@ -155,13 +155,9 @@ describe('On service', () => {
//expect(app.myUsingConsumer.pongResult).toBe('pong'); //expect(app.myUsingConsumer.pongResult).toBe('pong');
}); });
/*
it('Should handle partial using deps', async () => { it('Should handle partial using deps', async () => {
Context.service('dummyProvider'); Context.service('dummyProvider');
app = new App(); app = new App();
app.on('service', (name) => {
console.log('service', name);
});
await app.start(); await app.start();
app.plugin(MyPartialConsumer); app.plugin(MyPartialConsumer);
expect(app.myPartialConsumer).toBeDefined(); expect(app.myPartialConsumer).toBeDefined();
...@@ -177,5 +173,4 @@ describe('On service', () => { ...@@ -177,5 +173,4 @@ describe('On service', () => {
expect(await app.waterfall('pang', 'hi')).toEqual('pang: hi'); expect(await app.waterfall('pang', 'hi')).toEqual('pang: hi');
expect(await app.waterfall('pong', 'hi')).toEqual('pong: hi'); expect(await app.waterfall('pong', 'hi')).toEqual('pong: hi');
}); });
*/
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment