08da3d7d85406f55457e6c839c9b13babeed4c2a651ae3c7f7a66136fe6645649f8f31adf8fcbf62a1c23ba5840a3e7a9337377ece789eb7f9150fe36a43ab 535 B

12345678910111213141516171819
  1. const fs = require('fs');
  2. const assert = require('assert');
  3. const axios = require('../index.js');
  4. const {version} = JSON.parse(fs.readFileSync('./package.json'));
  5. console.log('Checking versions...\n----------------------------')
  6. console.log(`Package version: v${version}`);
  7. console.log(`Axios version: v${axios.VERSION}`);
  8. console.log(`----------------------------`);
  9. assert.strictEqual(
  10. version,
  11. axios.VERSION,
  12. `Version mismatch between package and Axios ${version} != ${axios.VERSION}`
  13. );
  14. console.log('✔️ PASSED\n');