Lines Matching refs:common

3 const common = require('../common');
36 finished(rs, common.mustCall((err) => {
38 assert.rejects(reader.read(), /AbortError/).then(common.mustCall());
39 assert.rejects(reader.closed, /AbortError/).then(common.mustCall());
42 reader.read().then(common.mustCall((result) => {
61 })(), /AbortError/).then(common.mustCall());
77 finished(rs1, common.mustCall((err) => {
79 assert.rejects(reader1.read(), /AbortError/).then(common.mustCall());
80 assert.rejects(reader1.closed, /AbortError/).then(common.mustCall());
83 finished(rs2, common.mustCall((err) => {
85 assert.rejects(reader2.read(), /AbortError/).then(common.mustCall());
86 assert.rejects(reader2.closed, /AbortError/).then(common.mustCall());
104 finished(rs1, common.mustCall((err) => {
106 assert.rejects(reader1.read(), /AbortError/).then(common.mustCall());
107 assert.rejects(reader1.closed, /AbortError/).then(common.mustCall());
110 finished(rs2, common.mustCall((err) => {
112 assert.rejects(reader2.read(), /AbortError/).then(common.mustCall());
113 assert.rejects(reader2.closed, /AbortError/).then(common.mustCall());
129 finished(ws, common.mustCall((err) => {
132 assert.rejects(writer.write('b'), /AbortError/).then(common.mustCall());
133 assert.rejects(writer.closed, /AbortError/).then(common.mustCall());
155 finished(ws1, common.mustCall((err) => {
157 assert.rejects(writer1.write('a'), /AbortError/).then(common.mustCall());
158 assert.rejects(writer1.closed, /AbortError/).then(common.mustCall());
161 finished(ws2, common.mustCall((err) => {
163 assert.rejects(writer2.write('a'), /AbortError/).then(common.mustCall());
164 assert.rejects(writer2.closed, /AbortError/).then(common.mustCall());