style(): add TODO about hardcoding things

This commit is contained in:
Andrew
2015-03-20 20:02:00 -06:00
parent 03273b28f8
commit 15b2b8022c
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
import * as Platform from './platform';
import * as util from './util';
// TODO stop hardcoding platforms and media sizes
/*
config
.set({ side: 'left' })
@@ -83,6 +85,7 @@ class ConfigCase {
}
unset(key) {
delete this._values[key];
return this;
}
get(key) {
return util.isDefined(this._values[key]) ?

View File

@@ -75,7 +75,7 @@ export function main() {
var sub1 = rootConfig.platform('ios');
sub1.set({ letter: 'b' });
expect(sub1.get('letter')).toBe('b');
sub1.unset('letter');
expect( sub1.unset('letter') ).toBe(sub1);
expect(sub1.get('letter')).toBe('a');
});