Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/javascript/tests/core/erlang_compat/maps_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ test('put/3', (t) => {

test('take/2', (t) => {
const myMap = new Map([['a', 1], ['b', 2]]);
let a;
let result;
[a, result] = Core.maps.take('a', myMap);
const [a, result] = Core.maps.take('a', myMap);
t.is(a, 1);
t.is(result.has('a'), false);
});
Expand Down
4 changes: 2 additions & 2 deletions src/javascript/tests/with.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Core from '../lib/core';
import test from 'ava';
import Core from '../lib/core';

const Patterns = Core.Patterns;
const SpecialForms = Core.SpecialForms;
Expand Down Expand Up @@ -31,7 +31,7 @@ test('with', (t) => {

const value = SpecialForms._with(
[new Tuple(Symbol.for('ok'), $), () => map_fetch(opts, 'width')],
[new Tuple(Symbol.for('ok'), $), width => map_fetch(opts, 'height')],
[new Tuple(Symbol.for('ok'), $), () => map_fetch(opts, 'height')],
(width, height) => new Tuple(Symbol.for('ok'), width * height),
);

Expand Down