diff --git a/test/helpers/common.test.js b/test/helpers/common.test.js index b1ebfa490..e66f2d4cb 100644 --- a/test/helpers/common.test.js +++ b/test/helpers/common.test.js @@ -34,6 +34,12 @@ describe('CommonHelpers', () => { expect(result).toEqual('subscribe'); }); }); + describe('.isV3', () => { + test('should return "false" - in case v2 doc', () => { + const result = CommonHelpers.isV3(v2Doc); + expect(result).toBe(false); + }); + }); }); describe('v3', () => { describe('.getOperationType', () => { @@ -70,5 +76,11 @@ describe('CommonHelpers', () => { expect(result).toEqual('request'); }); }); + describe('.isV3', () => { + test('should return "true" - in case v3 doc', () => { + const result = CommonHelpers.isV3(v3Doc); + expect(result).toBe(true); + }); + }); }); });