Skip to content

Commit

Permalink
Use ESM syntax for ESM example
Browse files Browse the repository at this point in the history
  • Loading branch information
anthumchris committed Aug 11, 2020
1 parent 43dda52 commit 20bc781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/recipes/es-modules.md
Expand Up @@ -65,8 +65,8 @@ export default function sum(a, b) {

```js
// test.js
const test = require('ava');
const sum = require('./sum');
import test from 'ava';
import sum from './sum';

test('2 + 2 = 4', t => {
t.is(sum(2, 2), 4);
Expand Down

0 comments on commit 20bc781

Please sign in to comment.