-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #656 from bnordli/issue-655
Fix for #655
- Loading branch information
Showing
4 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...or_Query/when_asking_if_all_parameters_are_set_and_one_observable_parameter_is_not_set.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
describe("when asking if all parameters are set and one observable parameter is not set", function () { | ||
|
||
var queryType = Bifrost.read.Query.extend(function () { | ||
var self = this; | ||
|
||
this.firstParameter = ko.observable(1); | ||
this.secondParameter = ko.observable(ko.observable()); | ||
}); | ||
|
||
var queryableFactory = {}; | ||
var region = {}; | ||
|
||
var instance = queryType.create({ | ||
queryableFactory: queryableFactory, | ||
region: region | ||
}); | ||
var result = instance.areAllParametersSet(); | ||
|
||
it("should return false", function () { | ||
expect(result).toBe(false); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters