mirror of
https://github.com/wassname/talk.git
synced 2026-07-28 11:27:05 +08:00
8 lines
215 B
TypeScript
8 lines
215 B
TypeScript
import startsWith from "./startsWith";
|
|
|
|
it("should work correctly", () => {
|
|
const str1 = "Saturday night plans";
|
|
expect(startsWith(str1, "Sat")).toBe(true);
|
|
expect(startsWith(str1, "Sat", 3)).toBe(false);
|
|
});
|