Adds setDefaultAdapter

This commit is contained in:
Florent Vilmart
2016-02-21 16:54:30 -05:00
parent d504681589
commit 33fa5a7b2a
4 changed files with 29 additions and 11 deletions

View File

@@ -76,12 +76,13 @@ describe('LoggerController', () => {
});
it('should throw without an adapter', (done) => {
LoggerController.setDefaultAdapter(undefined);
var loggerController = new LoggerController();
expect(() => {
loggerController.getLogs();
}).toThrow();
LoggerController.setDefaultAdapter(FileLoggerAdapter);
done();
});
});