GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: add asserts to validate test assumptions · nodejs/node@6843ca7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-tls-cert-regression.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-tls-cert-regression.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-tls-cert-regression.js
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
'use strict';
2323
const common = require('../common');
2424
const fixtures = require('../common/fixtures');
25+
const assert = require('assert');
2526

2627
if (!common.hasCrypto)
2728
common.skip('missing crypto');
@@ -43,6 +44,8 @@ while (cert[cert.length - 1 - i] === 0x0a) i++;
4344
if (i !== 0) cert = cert.slice(0, cert.length - i);
4445

4546
function test(cert, key, cb) {
47+
assert.notStrictEqual(cert.at(-1), 0x0a);
48+
assert.notStrictEqual(key.at(-1), 0x0a);
4649
const server = tls.createServer({
4750
cert,
4851
key

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.