摘要:
这是jest对path模块中常用功能的测试代码: import path from 'path' test("basename", () => { let x = path.basename('/foo/bar/baz/asdf/quux.html'); expect(x).toEqual('quu 阅读全文
posted @ 2022-03-18 09:12
cuishengli
阅读(468)
评论(0)
推荐(0)
浙公网安备 33010602011771号