Reorganize repo.
This commit is contained in:
23
docs/dsl/index.test.js
Normal file
23
docs/dsl/index.test.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import { describe, it } from "vitest"
|
||||
import { document } from '../../../implementations/js/packages/core/src/terrace.js'
|
||||
import fs from 'node:fs'
|
||||
import readline from 'node:readline/promises'
|
||||
|
||||
describe('Terrace DSL: thederf.com', () => {
|
||||
it('loads', async () => {
|
||||
const it = readline.createInterface({
|
||||
input: fs.createReadStream('./test.tce', 'utf-8'),
|
||||
})[Symbol.asyncIterator]()
|
||||
|
||||
const getLine = async () => {
|
||||
console.log(1)
|
||||
console.log('GETLINE', await it.next())
|
||||
console.log(2)
|
||||
const val = (await it.next()).value
|
||||
return val
|
||||
}
|
||||
|
||||
const doc = document(getLine, ' ')
|
||||
doc.next(() => {})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user