fix: Fixed nix build.

This commit is contained in:
Spencer Brower
2023-05-25 14:17:19 -04:00
parent 3f018acd2c
commit 3a791a2fd5
3 changed files with 57 additions and 25 deletions

View File

@@ -5,6 +5,21 @@ import {
} from './index';
describe('strings', () => {
describe('startsWith', () => {
it('returns true if haystack starts with needle', () => {
expect(startsWith('foo', 'foobar')).toBe(true);
})
it('returns true when haystack is needle', () => {
expect(startsWith('foo', 'foo')).toBe(true);
})
it('works', () => {
fc.assert(fc.property(fc.string(), fc.string(), (needle, haystack) => {
if (haystack.indexOf(needle) == 0) {
expect(startsWith(needle, haystack)).toBe(true);
}
}));
})
});
// describe('afterFirstWord', () => {
// it('removes the first word', () => {
// fc.assert(fc.property(fc.string(), (str) => {