Skip to content

Commit

Permalink
[test] Improve test title
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed Jan 6, 2022
1 parent 4081a36 commit ad3fe6d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/sender.test.js
Expand Up @@ -2,9 +2,10 @@

const assert = require('assert');

const PerMessageDeflate = require('../lib/permessage-deflate');
const extension = require('../lib/extension');
const PerMessageDeflate = require('../lib/permessage-deflate');
const Sender = require('../lib/sender');
const { EMPTY_BUFFER } = require('../lib/constants');

class MockSocket {
constructor({ write } = {}) {
Expand Down Expand Up @@ -35,8 +36,8 @@ describe('Sender', () => {
assert.ok(buf.equals(Buffer.from([1, 2, 3, 4, 5])));
});

it('sets RSV1 bit if compressed', () => {
const list = Sender.frame(Buffer.from('hi'), {
it('honors the `rsv1` option', () => {
const list = Sender.frame(EMPTY_BUFFER, {
readOnly: false,
mask: false,
rsv1: true,
Expand Down

0 comments on commit ad3fe6d

Please sign in to comment.