Skip to content

Commit f2dbcf2

Browse files
committed
test(resourcename/hasParent): add test case for singleton
Exist only test case for singleton child (`shippers/1/sites/1/settings`).
1 parent 2a1a776 commit f2dbcf2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

resourcename/hasparent_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ func TestHasParent(t *testing.T) {
4242
expected: false,
4343
},
4444

45+
{
46+
test: "singleton",
47+
name: "shippers/1/settings",
48+
parent: "shippers/1",
49+
expected: true,
50+
},
4551
{
4652
test: "singleton child",
4753
name: "shippers/1/sites/1/settings",

0 commit comments

Comments
 (0)