diff --git a/packages/api-explorer/__tests__/index.test.jsx b/packages/api-explorer/__tests__/index.test.jsx
index 4f9db3cf1..1079a5f06 100644
--- a/packages/api-explorer/__tests__/index.test.jsx
+++ b/packages/api-explorer/__tests__/index.test.jsx
@@ -133,6 +133,24 @@ describe('oas', () => {
expect(explorer.find('Doc').get(0).props.oas).toBe(oas);
});
+ it('should fetch it from `doc.api.apiSetting` if it is a string', () => {
+ const explorer = shallow(
+ ,
+ );
+
+ expect(explorer.find('Doc').get(0).props.oas).toBe(oas);
+ });
+
it('should set it to empty object', () => {
const explorer = shallow(