Skip to content

Commit

Permalink
Merge pull request #3 from hobbes7878/outside-contributor
Browse files Browse the repository at this point in the history
Outside contributor
  • Loading branch information
hobbes7878 authored Feb 11, 2023
2 parents 6e88e55 + 9974a19 commit c46c8a9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
registry-url: https://registry.npmjs.org
scope: '@reuters-graphics'

Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export const doMaths = (a, b) => a + b;

export const doDifferentMaths = (a, b) => a * b;
export const doDifferentMaths = (a, b) => a * b;

export const doMaxMaths = (a, b) => (b - a) / a;
6 changes: 5 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { doDifferentMaths, doMaths } from '../index.js';
import { doDifferentMaths, doMaths, doMaxMaths } from '../index.js';

import assert from 'assert';

Expand All @@ -18,4 +18,8 @@ describe('tests', function () {
it('should do more different maths', function () {
assert.equal(doDifferentMaths(4, 4), 16);
});

it('should do max maths', function () {
assert.equal(doMaxMaths(4, 8), 1);
});
});

0 comments on commit c46c8a9

Please sign in to comment.