Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion test/protocols/hcql-adapter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ const cds = require('@sap/cds/lib')
const { GET, POST, DELETE, expect, axios } = cds.test(__dirname)

// Fetch API disallows GET|HEAD requests with body
if (axios.constructor.name === 'Naxios') it = it.skip
if (axios.constructor.name === 'Naxios') {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This detection looks brittle. Could e.g. do it by checking for a native axios API.

const { it } = global
global.it = (title) => it(title)
}

const _unwrap = data => {
data = data.data ?? data
Expand Down