From c35b0aa8de9189bfe6010f23e9cf8ee5f1f674eb Mon Sep 17 00:00:00 2001 From: Paolo Priotto Date: Mon, 17 Apr 2023 16:22:08 +0200 Subject: [PATCH] fix(README): Update axios example This was added with #1711 but [has changed with axios v1](https://github.com/axios/axios/pull/5277) --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 19aba35c6..c2e120fcb 100644 --- a/README.md +++ b/README.md @@ -1539,9 +1539,8 @@ import test from 'ava' // You can use any test framework. // can't be intercepted by nock. So, configure axios to use the node adapter. // // References: -// https://github.com/nock/nock/issues/699#issuecomment-272708264 -// https://github.com/axios/axios/issues/305 -axios.defaults.adapter = require('axios/lib/adapters/http') +// https://github.com/axios/axios/pull/5277 +axios.defaults.adapter = 'http' test('can fetch test response', async t => { // Set up the mock request.