Skip to content

Commit

Permalink
chore: extract examplesPath
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelly Selden authored and kellyselden committed Nov 20, 2020
1 parent 8a3dafb commit a01012b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ const { expect } = require('../helpers/chai');
const _run = require('../helpers/run');
const path = require('path');

const examplesPath = path.resolve(__dirname, '../examples');

function getCwd(example) {
return path.resolve(__dirname, '../examples', example);
return path.join(examplesPath, example);
}

describe(function() {
Expand Down

0 comments on commit a01012b

Please sign in to comment.