Orginize
This commit is contained in:
@@ -5,7 +5,7 @@ import { readFile } from 'node:fs/promises'
|
||||
import { dirname, join } from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import test from 'brittle'
|
||||
import { bareAwkRun } from '../lib/awk-engine.js'
|
||||
import { bareAwkRun } from '../lib/engines/awk-engine.js'
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url))
|
||||
const srcDir = join(__dirname, '../src')
|
||||
@@ -24,7 +24,7 @@ test('awk.js exists and wires field parsing', async (t) => {
|
||||
})
|
||||
|
||||
test('awk-engine supports delete arr[key] statement', async (t) => {
|
||||
const s = await readFile(join(__dirname, '../lib/awk-engine.js'), 'utf8')
|
||||
const s = await readFile(join(__dirname, '../lib/engines/awk-engine.js'), 'utf8')
|
||||
t.ok(s.includes("id === 'delete'"))
|
||||
t.ok(s.includes("case 'delete':"))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user