Skip to content

Commit

Permalink
test: use platform in directory name
Browse files Browse the repository at this point in the history
To rule out the runner matrix causing problems
  • Loading branch information
wkillerud committed Nov 15, 2024
1 parent 5230bf3 commit 9906956
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions slug.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import uniqueSlug from "unique-slug";
function slug() {
return uniqueSlug();
}

console.log(slug());
7 changes: 6 additions & 1 deletion test/main.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
/* eslint-disable no-empty */

import { Writable, pipeline } from "node:stream";
import os from "node:os";
import { stream } from "@eik/common";
import slug from "unique-slug";
import uniqueSlug from "unique-slug";
import tap from "tap";
import fs from "node:fs";

import Sink from "../lib/main.js";

function slug() {
return `${os.platform()}/${uniqueSlug()}`;
}

// Ignore the value for "timestamp" field in the snapshots
tap.cleanSnapshot = (s) => {
const regex = /"timestamp": [0-9.]+,/gi;
Expand Down

0 comments on commit 9906956

Please sign in to comment.