Lines Matching refs:rejects
38 assert.rejects(reader.read(), /AbortError/).then(common.mustCall());
39 assert.rejects(reader.closed, /AbortError/).then(common.mustCall());
55 assert.rejects((async () => {
79 assert.rejects(reader1.read(), /AbortError/).then(common.mustCall());
80 assert.rejects(reader1.closed, /AbortError/).then(common.mustCall());
85 assert.rejects(reader2.read(), /AbortError/).then(common.mustCall());
86 assert.rejects(reader2.closed, /AbortError/).then(common.mustCall());
106 assert.rejects(reader1.read(), /AbortError/).then(common.mustCall());
107 assert.rejects(reader1.closed, /AbortError/).then(common.mustCall());
112 assert.rejects(reader2.read(), /AbortError/).then(common.mustCall());
113 assert.rejects(reader2.closed, /AbortError/).then(common.mustCall());
132 assert.rejects(writer.write('b'), /AbortError/).then(common.mustCall());
133 assert.rejects(writer.closed, /AbortError/).then(common.mustCall());
157 assert.rejects(writer1.write('a'), /AbortError/).then(common.mustCall());
158 assert.rejects(writer1.closed, /AbortError/).then(common.mustCall());
163 assert.rejects(writer2.write('a'), /AbortError/).then(common.mustCall());
164 assert.rejects(writer2.closed, /AbortError/).then(common.mustCall());