Skip to content

Commit

Permalink
test: fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoBorzi committed Mar 3, 2020
1 parent 6af0195 commit 0dfc3f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/shared/services/mysql-query.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe('MysqlQueryService', () => {
it('query() should call mysqlService.dbQuery() and not output anything if debug mode is disabled', () => {
const logSpy = spyOn(console, 'log');
configService.debugMode = false;
const querySpy = spyOn(TestBed.inject(MysqlService), 'dbQuery').and.returnValue(of({}));
const querySpy = spyOn(TestBed.inject(MysqlService), 'dbQuery').and.returnValue(of(null));
const myQuery = 'SELECT azerothcore FROM projects;';

service.query(myQuery).subscribe(() => {
Expand Down

0 comments on commit 0dfc3f7

Please sign in to comment.