test: fix Windows path in LID mapping test
This commit is contained in:
parent
35083fcb37
commit
40b4341a1d
1 changed files with 5 additions and 1 deletions
|
|
@ -86,7 +86,11 @@ describe("normalizeE164 & toWhatsappJid", () => {
|
||||||
|
|
||||||
describe("jidToE164", () => {
|
describe("jidToE164", () => {
|
||||||
it("maps @lid using reverse mapping file", () => {
|
it("maps @lid using reverse mapping file", () => {
|
||||||
const mappingPath = `${CONFIG_DIR}/credentials/lid-mapping-123_reverse.json`;
|
const mappingPath = path.join(
|
||||||
|
CONFIG_DIR,
|
||||||
|
"credentials",
|
||||||
|
"lid-mapping-123_reverse.json",
|
||||||
|
);
|
||||||
const original = fs.readFileSync;
|
const original = fs.readFileSync;
|
||||||
const spy = vi
|
const spy = vi
|
||||||
.spyOn(fs, "readFileSync")
|
.spyOn(fs, "readFileSync")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue