Commit 2676161c authored by samy's avatar samy

FIX PR COMMENTS

parent a22a3791
Pipeline #4506 passed with stage
in 2 minutes and 29 seconds
......@@ -53,16 +53,11 @@ describe('client/lib/archive', () => {
expect(global.robotLib.archive).toBeDefined();
});
it('should make init REST request', () => {
const transcript = 'transcript_test';
const result = global.archive.store(transcript);
expect(result).toBe(true);
expect(request[0]).not.toBeNull();
});
it('should make correct REST call on store', () => {
const transcript = 'transcript_test';
const result = global.archive.store(transcript);
global.archive.store(transcript);
expect(result).toBe(true);
expect(request[0].method).toBe('POST');
expect(request[0].url).toBe(config.archive);
expect(request[0].requestBody).toBe(JSON.stringify(transcript));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment