From d1bd0ef1b7db975b4e2fb8e986ab64a9995f4f51 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sat, 16 Nov 2024 16:43:57 +0000 Subject: [PATCH] doc: remove non-working example PR-URL: https://github.com/nodejs/node/pull/55856 Reviewed-By: Pietro Marchini Reviewed-By: Chemi Atlow Reviewed-By: Jacob Smith Reviewed-By: Luigi Pinca Reviewed-By: Raz Luvaton Reviewed-By: Marco Ippolito --- doc/api/sqlite.md | 11 +---------- doc/api/test.md | 11 +---------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/doc/api/sqlite.md b/doc/api/sqlite.md index 34dfdaf1b11365..42cfbd45a35761 100644 --- a/doc/api/sqlite.md +++ b/doc/api/sqlite.md @@ -22,16 +22,7 @@ import sqlite from 'node:sqlite'; const sqlite = require('node:sqlite'); ``` -This module is only available under the `node:` scheme. The following will not -work: - -```mjs -import sqlite from 'sqlite'; -``` - -```cjs -const sqlite = require('sqlite'); -``` +This module is only available under the `node:` scheme. The following example shows the basic usage of the `node:sqlite` module to open an in-memory database, write data to the database, and then read the data back. diff --git a/doc/api/test.md b/doc/api/test.md index 8052bbed3e875e..2ccc87a3f2ae00 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -27,16 +27,7 @@ import test from 'node:test'; const test = require('node:test'); ``` -This module is only available under the `node:` scheme. The following will not -work: - -```mjs -import test from 'test'; -``` - -```cjs -const test = require('test'); -``` +This module is only available under the `node:` scheme. Tests created via the `test` module consist of a single function that is processed in one of three ways: