Skip to content

Commit 7d53bd2

Browse files
cartantdavideast
authored andcommitted
test(database): enable a commented-out test
Not sure why this was commented out, as it's implemented and testable. It's now tested in a manner similar to the other tests.
1 parent 7a85bd2 commit 7d53bd2

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/database/query_observable.spec.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,15 @@ describe('observeQuery', () => {
124124
});
125125

126126

127-
// describe('getOrderObservables', () => {
128-
// it('should be subscribable event if no observables found for orderby', () => {
129-
// expect(() => {
130-
// getOrderObservables((<Query>{})).subscribe();
131-
// }).not.toThrow();
132-
// });
133-
// });
127+
describe('getOrderObservables', () => {
128+
it('should be subscribable event if no observables found for orderby', () => {
129+
var nextSpy = jasmine.createSpy('next');
130+
var obs = getOrderObservables({});
131+
obs.subscribe(nextSpy);
132+
expect(nextSpy).toHaveBeenCalledWith(null);
133+
});
134+
});
135+
134136

135137
describe('query combinations', () => {
136138

0 commit comments

Comments
 (0)