From 2ca3e4f3b4f5c6d292da61494a0389e44cb35034 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Thu, 14 Nov 2024 17:36:26 +0100 Subject: [PATCH] doc: remove non-working example --- 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 a6ca7531d503a2..37977a9b8a56f4 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: