mirror of
https://github.com/tauri-apps/tauri-toml.git
synced 2026-02-06 19:31:17 +01:00
16 lines
477 B
JavaScript
16 lines
477 B
JavaScript
'use strict'
|
|
const TOML = require('..')
|
|
const TomlError = require('../lib/toml-parser.js').TomlError
|
|
const testParser = require('./lib/test-parser.js')
|
|
const testStringifier = require('./lib/test-stringifier.js')
|
|
|
|
const toTest = {
|
|
name: '@iarna/toml',
|
|
parse: TOML.parse,
|
|
stringify: TOML.stringify,
|
|
ErrorClass: TomlError
|
|
}
|
|
|
|
testParser([toTest], `${__dirname}/spec-test/values`, `${__dirname}/spec-test/errors`)
|
|
testStringifier([toTest], `${__dirname}/spec-test/values`)
|