Skip to content

A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.

525 B
Raw Blame
"use strict";

const test = require("node:test");
const assert = require("node:assert/strict");
const { scrub } = require("../lib/scrubber");

test("scrub returns its input unchanged for strings", () => {
  assert.equal(scrub("hello world"), "hello world");
});

test("scrub returns its input unchanged for non-strings", () => {
  assert.equal(scrub(42), 42);
  assert.equal(scrub(null), null);
  assert.equal(scrub(undefined), undefined);
});

test("scrub never throws", () => {
  scrub({ nested: "obj" });
  scrub([]);
});