Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.

Commit 2be8bd4

Browse files
committed
Fixed brightness spec failures
1 parent 8e2daa5 commit 2be8bd4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/mocks/brightness.spec.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@ describe('ngCordovaMocks', function() {
1111
}));
1212

1313
it('should get the current brightness', function () {
14-
var currentBrightness = $cordovaBrightness.get();
15-
expect(currentBrightness).toEqual(100);
14+
$cordovaBrightness.get().then(function (result) {
15+
expect(result.value).toEqual(100);
16+
});
1617
});
1718

1819
it('should set the current brightness', function () {
1920
$cordovaBrightness.set(50);
2021

2122
var currentBrightness = $cordovaBrightness.get();
22-
expect(currentBrightness).toEqual(50);
23+
$cordovaBrightness.get().then(function (result) {
24+
expect(result.value).toEqual(50);
25+
});
2326
});
2427
});
2528
})

0 commit comments

Comments
 (0)