Skip to content

Commit

Permalink
license test
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime committed Nov 23, 2024
1 parent 65b9aea commit 8a5a056
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/license.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import assert from 'node:assert/strict';
import { readFile } from 'node:fs/promises';
import eslintDirURL from '../lib/default-eslint-dir-url.js';

it
(
'ESLint License',
async () =>
{
const actualURL = new URL('../ESLint License.txt', import.meta.url);
const expectedURL = new URL('./LICENSE', eslintDirURL);
const [actual, expected] =
await Promise.all([readFile(actualURL), readFile(expectedURL)]);
assert.deepEqual(actual, expected);
},
);

0 comments on commit 8a5a056

Please sign in to comment.