Lines Matching refs:writable
8 const writable = new stream.Writable(); constant
10 writable._write = (chunk, encoding, cb) => {
11 assert.strictEqual(writable._writableState.ended, false);
12 assert.strictEqual(writable._writableState.writable, undefined);
13 assert.strictEqual(writable.writableEnded, false);
17 assert.strictEqual(writable._writableState.ended, false);
18 assert.strictEqual(writable._writableState.writable, undefined);
19 assert.strictEqual(writable.writable, true);
20 assert.strictEqual(writable.writableEnded, false);
22 writable.end('testing ended state', common.mustCall(() => {
23 assert.strictEqual(writable._writableState.ended, true);
24 assert.strictEqual(writable._writableState.writable, undefined);
25 assert.strictEqual(writable.writable, false);
26 assert.strictEqual(writable.writableEnded, true);
29 assert.strictEqual(writable._writableState.ended, true);
30 assert.strictEqual(writable._writableState.writable, undefined);
31 assert.strictEqual(writable.writable, false);
32 assert.strictEqual(writable.writableEnded, true);