Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Huauauaa committed Mar 5, 2023
1 parent 6cb3fab commit ae1fc31
Show file tree
Hide file tree
Showing 5 changed files with 497 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@
"scripts": {
"start": "npm run docs:dev",
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs"
"docs:build": "vuepress build docs",
"test": "mocha --require @babel/register"
},
"keywords": [],
"author": "Harvey <[email protected]>",
"license": "MIT",
"devDependencies": {
"@babel/register": "^7.21.0",
"@vuepress/plugin-back-to-top": "^1.8.2",
"assert": "^2.0.0",
"mocha": "^10.2.0",
"prettier": "^2.2.1",
"vuepress": "^1.7.1"
}
},
"dependencies": {}
}
3 changes: 3 additions & 0 deletions test/add.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function add(a, b) {
return a + b;
}
8 changes: 8 additions & 0 deletions test/add.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import assert from 'assert';
import { add } from './add';

describe('foo', function () {
it('assert', function () {
assert.equal(add(1, 2), 3);
});
});
Loading

0 comments on commit ae1fc31

Please sign in to comment.