============LICENSE_START==========================================
===================================================================
Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
+
+Modification Copyright (C) 2018 IBM.
===================================================================
Unless otherwise specified, all software contained herein is licensed
component.deviceProtocolChange();
expect(spy).toHaveBeenCalled()
});
+
+ it('should test uplaod function', () => {
+ let content = "Hello World";
+ let data = new Blob([content], { type: 'text/plain' });
+ let arrayOfBlob = new Array<Blob>();
+ arrayOfBlob.push(data);
+ let file = new File(arrayOfBlob, "Mock.XLS");
+ let evnt = {target: {files: [file]}};
+ component.upload(evnt);
+ });
});
\ No newline at end of file