Refactor BaseDevice constructor
Summary: OS must always be defined. Reviewed By: jknoxville Differential Revision: D17204398 fbshipit-source-id: 0d84111c382af623843a41360bcb472394daf3f1
This commit is contained in:
committed by
Facebook Github Bot
parent
dbab2d1d6d
commit
4d7e776672
@@ -20,7 +20,7 @@ test('REGISTER_DEVICE doesnt remove error', () => {
|
||||
|
||||
const endState = reducer(initialState, {
|
||||
type: 'REGISTER_DEVICE',
|
||||
payload: new BaseDevice('serial', 'physical', 'title'),
|
||||
payload: new BaseDevice('serial', 'physical', 'title', 'Android'),
|
||||
});
|
||||
|
||||
expect(endState.error).toEqual('something went wrong');
|
||||
|
||||
Reference in New Issue
Block a user