Skip to content

Commit

Permalink
test(ses): Improve test-assert-log test names
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Jun 5, 2023
1 parent 7c27d7f commit fdf5365
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/ses/test/error/test-assert-log.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ test('a causal tree falls silently', t => {
);
});

test('assert equals', t => {
test('assert.equal', t => {
assert.equal(2 + 3, 5);
throwsAndLogs(
t,
Expand Down Expand Up @@ -247,7 +247,7 @@ test('assert equals', t => {
);
});

test('assert typeof', t => {
test('assert.typeof', t => {
assert.typeof(2, 'number');
throwsAndLogs(
t,
Expand All @@ -260,7 +260,7 @@ test('assert typeof', t => {
]);
});

test('assert error default', t => {
test('assert.error default type', t => {
const err = assert.error(d`<${'bar'},${q('baz')}>`);
t.is(err.message, '<(a string),"baz">');
t.is(err.name, 'Error');
Expand All @@ -287,7 +287,7 @@ test('assert error default', t => {
);
});

test('assert error explicit', t => {
test('assert.error explicit type', t => {
const err = assert.error(d`<${'bar'},${q('baz')}>`, URIError);
t.is(err.message, '<(a string),"baz">');
t.is(err.name, 'URIError');
Expand All @@ -314,7 +314,7 @@ test('assert error explicit', t => {
);
});

test('assert error named', t => {
test('assert.error named', t => {
const err = assert.error(d`<${'bar'},${q('baz')}>`, URIError, {
errorName: 'Foo-Err',
});
Expand Down Expand Up @@ -343,7 +343,7 @@ test('assert error named', t => {
);
});

test('assert q', t => {
test('assert.quote', t => {
throwsAndLogs(
t,
() => assert.fail(d`<${'bar'},${q('baz')}>`),
Expand Down Expand Up @@ -385,7 +385,7 @@ test('assert q', t => {
);
});

test('assert b', t => {
test('assert.bare', t => {
throwsAndLogs(t, () => assert.fail(d`${b('foo')}`), 'foo', [
['log', 'Caught', Error],
]);
Expand All @@ -407,7 +407,7 @@ test('assert b', t => {
]);
});

test('q as best efforts stringify', t => {
test('assert.quote as best efforts stringify', t => {
t.is(`${q('baz')}`, '"baz"');
const list = ['a', 'b', 'c'];
t.is(`${q(list)}`, '["a","b","c"]');
Expand Down Expand Up @@ -493,7 +493,7 @@ test('printing detailsToken', t => {
});
});

test('q tolerates always throwing exotic', t => {
test('assert.quote tolerates always throwing exotic', t => {
/**
* alwaysThrowHandler
* This is an object that throws if any propery is read. It's used as
Expand Down

0 comments on commit fdf5365

Please sign in to comment.