Skip to content

Commit

Permalink
fix: moving node axios snippet fixtures from .cjs to .js
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Sep 5, 2024
1 parent 95465fc commit 9c0846c
Show file tree
Hide file tree
Showing 22 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/helpers/__snapshots__/utils.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ exports[`availableTargets > returns all available targets 1`] = `
"clients": [
{
"description": "Promise based HTTP client for the browser and node.js",
"extname": ".cjs",
"extname": ".js",
"installation": "npm install axios --save",
"key": "axios",
"link": "https://github.com/axios/axios",
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('extname', () => {
expect(extname('c', 'libcurl')).toBe('.c');
expect(extname('clojure', 'clj_http')).toBe('.clj');
expect(extname('javascript', 'axios')).toBe('.js');
expect(extname('node', 'axios')).toBe('.cjs');
expect(extname('node', 'axios')).toBe('.js');
});

it('returns empty string if the extension is not found', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/targets/node/axios/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const axios: Client = {
title: 'Axios',
link: 'https://github.com/axios/axios',
description: 'Promise based HTTP client for the browser and node.js',
extname: '.cjs',
extname: '.js',
installation: 'npm install axios --save',
},
convert: ({ method, fullUrl, allHeaders, postData }, options) => {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9c0846c

Please sign in to comment.