Skip to content

Commit

Permalink
Merge pull request #77 from sanctuary-js/davidchambers/test
Browse files Browse the repository at this point in the history
convert test modules to ES modules
  • Loading branch information
davidchambers authored Jan 8, 2024
2 parents 262b01a + 33c9d67 commit 9b6545d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions test/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"root": true,
"extends": ["../node_modules/sanctuary-style/eslint.json"],
"parserOptions": {"sourceType": "module"},
"env": {"node": true},
"globals": {"suite": "readonly", "test": "readonly"}
}
18 changes: 9 additions & 9 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
'use strict';
import assert from 'assert';
import util from 'util';

const assert = require ('assert');
const util = require ('util');
import jsc from 'jsverify';
import $ from 'sanctuary-def';
import show from 'sanctuary-show';
import Z from 'sanctuary-type-classes';

import int from '../index.js';

const jsc = require ('jsverify');
const $ = require ('sanctuary-def');
const show = require ('sanctuary-show');
const Z = require ('sanctuary-type-classes');

const {
Int, NonZeroInt,
add, sub, mul, quot, rem, div, mod, and, or, xor, not, even, odd,
} = require ('..');

} = int;

// eq :: a -> b -> Undefined !
function eq(actual) {
Expand Down
3 changes: 3 additions & 0 deletions test/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}

0 comments on commit 9b6545d

Please sign in to comment.