Use int for 'checked' manipulator instead of boolean

This commit is contained in:
Keegan
2016-02-19 11:24:35 -08:00
parent d3ee516ab1
commit ae47311efa
5 changed files with 14 additions and 12 deletions
+2 -2
View File
@@ -112,7 +112,7 @@ describe('ClayConfig', function() {
assert.deepEqual(clayConfig.getSettings(), {
test1: 'default val',
test2: 'val-2',
test3: false
test3: 0
});
clayConfig.getItemByAppKey('test1').set('val-1');
@@ -121,7 +121,7 @@ describe('ClayConfig', function() {
assert.deepEqual(clayConfig.getSettings(), {
test1: 'val-1',
test2: 'val-2',
test3: true
test3: 1
});
});
});
+4 -2
View File
@@ -95,8 +95,10 @@ describe('manipulators', function() {
});
describe('checked', function() {
testSetGet('toggle', true);
testSetGet('toggle', false);
testSetGet('toggle', true, 1);
testSetGet('toggle', 1);
testSetGet('toggle', false, 0);
testSetGet('toggle', 0);
testDisable('toggle');
testEnable('toggle');
});