Skip to content

Commit 7e54395

Browse files
committed
:Better tests
1 parent 119afad commit 7e54395

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

index.test.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ describe(githubLoginIsInCodeowners, () => {
4545
expect(ortaIn).toEqual(true);
4646
});
4747
test("denies other accounts", () => {
48-
const ortaIn = githubLoginIsInCodeowners("dogman", ".");
49-
expect(ortaIn).toEqual(false);
48+
const noDogMan = githubLoginIsInCodeowners("dogman", ".");
49+
expect(noDogMan).toEqual(false);
50+
});
51+
test("denies subsets of existing accounts", () => {
52+
const noOrt = githubLoginIsInCodeowners("ort", ".");
53+
expect(noOrt).toEqual(false);
5054
});
5155
})

0 commit comments

Comments
 (0)