Skip to content

Commit

Permalink
test: add integration test for delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Aug 22, 2022
1 parent 10fa7d0 commit 395c560
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/deno-integration.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* eslint-disable import/no-unresolved */

import { name, normalizeTrim, join } from "../dist/index.deno.mjs"
import { name, normalizeTrim, join, delimiter } from "../dist/index.deno.mjs"

name("path/to/file.md")
normalizeTrim("/foo/../")
join("a", "b")
console.log(delimiter)
3 changes: 2 additions & 1 deletion test/node-integration.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const filePaths = require("../dist/index.node.cjs")
const { name, normalizeTrim, join } = filePaths
const { name, normalizeTrim, join, delimiter } = filePaths

name("path/to/file.md")
normalizeTrim("/foo/../")
join("a", "b")
console.log(delimiter)
3 changes: 2 additions & 1 deletion test/node-integration.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/* eslint-disable import/no-unresolved */

import { name, join } from "../dist/index.node.mjs"
import { name, join, delimiter } from "../dist/index.node.mjs"
import { normalizeTrim } from "../dist/normalize-trim.mjs"

name("path/to/file.md")
normalizeTrim("/foo/../")
join("a", "b")
console.log(delimiter)

0 comments on commit 395c560

Please sign in to comment.