Skip to content

Commit 9c0846c

Browse files
committed
fix: moving node axios snippet fixtures from .cjs to .js
1 parent 95465fc commit 9c0846c

22 files changed

+3
-3
lines changed

src/helpers/__snapshots__/utils.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ exports[`availableTargets > returns all available targets 1`] = `
180180
"clients": [
181181
{
182182
"description": "Promise based HTTP client for the browser and node.js",
183-
"extname": ".cjs",
183+
"extname": ".js",
184184
"installation": "npm install axios --save",
185185
"key": "axios",
186186
"link": "https://github.com/axios/axios",

src/helpers/utils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('extname', () => {
2222
expect(extname('c', 'libcurl')).toBe('.c');
2323
expect(extname('clojure', 'clj_http')).toBe('.clj');
2424
expect(extname('javascript', 'axios')).toBe('.js');
25-
expect(extname('node', 'axios')).toBe('.cjs');
25+
expect(extname('node', 'axios')).toBe('.js');
2626
});
2727

2828
it('returns empty string if the extension is not found', () => {

src/targets/node/axios/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const axios: Client = {
1919
title: 'Axios',
2020
link: 'https://github.com/axios/axios',
2121
description: 'Promise based HTTP client for the browser and node.js',
22-
extname: '.cjs',
22+
extname: '.js',
2323
installation: 'npm install axios --save',
2424
},
2525
convert: ({ method, fullUrl, allHeaders, postData }, options) => {

0 commit comments

Comments
 (0)