mirror of
https://github.com/nodejs/node.git
synced 2025-05-05 15:32:15 +00:00

Changes in test-zlib-from-string is because var->const pushed us over the max char limit per line. PR-URL: https://github.com/nodejs/node/pull/8627 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
18 lines
559 B
JavaScript
18 lines
559 B
JavaScript
/* eslint-disable strict */
|
|
require('../common');
|
|
const assert = require('assert');
|
|
|
|
const zlib = require('zlib');
|
|
|
|
assert.equal(zlib.constants.Z_OK, 0, 'Z_OK should be 0');
|
|
zlib.constants.Z_OK = 1;
|
|
assert.equal(zlib.constants.Z_OK, 0, 'Z_OK should be 0');
|
|
|
|
assert.equal(zlib.codes.Z_OK, 0, 'Z_OK should be 0');
|
|
zlib.codes.Z_OK = 1;
|
|
assert.equal(zlib.codes.Z_OK, 0, 'zlib.codes.Z_OK should be 0');
|
|
zlib.codes = {Z_OK: 1};
|
|
assert.equal(zlib.codes.Z_OK, 0, 'zlib.codes.Z_OK should be 0');
|
|
|
|
assert.ok(Object.isFrozen(zlib.codes), 'zlib.codes should be frozen');
|