OXYGENHUB
# ca2304a7851a oxygen-vscode / test / paths.test.mjs
619 B · last changed Stop the Source Control refresh loop; remotes carry their CA (0.13.0) 1 month ago source blame history raw
1
import { test } from "node:test";
2
import assert from "node:assert/strict";
3
import { isInStore } from "../out/paths.mjs";
4
5
test("every .oxy store is left out, a subrepo's too", () => {
6
  assert.equal(isInStore(".oxy/workspaces/a/manifest"), true);
7
  assert.equal(isInStore("rstar-api/.oxy/workspaces/b/manifest"), true, "a subrepo's store");
8
  assert.equal(isInStore("libs\\sub\\.oxy\\ops\\head"), true, "Windows separators");
9
  assert.equal(isInStore("src/main.c"), false);
10
  assert.equal(isInStore("docs/.oxy-notes.md"), false, "only a whole .oxy component");
11
  assert.equal(isInStore("a.oxy-conflict-1"), false);
12
});