Skip to content

Commit 9b02ca9

Browse files
chore(deleteReferences): Clean test file
1 parent e7e8ab0 commit 9b02ca9

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

test/unit.test.js

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ testsuites.forEach(testsuite => {
5353
});
5454
test(`[${name}] test get primary key`, async t =>
5555
testPrimaryKey(sut, t, name));
56-
// test(`[${name}] test sub-collection check`, async t =>
57-
// testSubCollection(sut, t, name));
5856
test(`[${name}] test target collection parameter swap`, async t =>
5957
testTargetVariableSwap(sut, t, name));
6058
test(`[${name}] test replicate attributes`, async t =>
@@ -74,8 +72,6 @@ testsuites.forEach(testsuite => {
7472

7573
test(`[${name}] test delete all sub-collections in target reference`, async t =>
7674
testDeleteAllSubCollections(sut, t, name));
77-
// test(`[${name}] test delete all sub-collections in target reference error`, async t =>
78-
// testDeleteAllSubCollectionsError(sut, t, name));
7975

8076
test(`[${name}] test delete missing arguments error`, async t =>
8177
testDeleteMissingArgumentsError(sut, t, name));
@@ -104,44 +100,6 @@ async function testPrimaryKey(sut, t, name) {
104100
await t.pass();
105101
}
106102

107-
// async function testSubCollection(sut, t, name) {
108-
// // Test zero key
109-
// let result = isSubCollection('');
110-
// t.false(result);
111-
112-
// // Test one key
113-
// result = isSubCollection('collection');
114-
// t.false(result);
115-
116-
// // Test two keys
117-
// result = isSubCollection('collection1/collection2');
118-
// t.false(result);
119-
120-
// // Test three keys
121-
// result = isSubCollection('collection1/collection2/collection3');
122-
// t.true(result);
123-
124-
// // Test four keys
125-
// result = isSubCollection('collection1/collection2/collection3/collection4');
126-
// t.false(result);
127-
128-
// // Test five keys
129-
// result = isSubCollection(
130-
// 'collection1/collection2/collection3/collection4/collection5'
131-
// );
132-
// t.true(result);
133-
134-
// // Check incorrect format of collection
135-
// result = isSubCollection('collection1//');
136-
// t.false(result);
137-
// result = isSubCollection('//collection1//');
138-
// t.false(result);
139-
// result = isSubCollection('collection1///collection2///collection3');
140-
// t.true(result);
141-
142-
// await t.pass();
143-
// }
144-
145103
async function testTargetVariableSwap(sut, t, name) {
146104
// test no fields
147105
let collectionId = makeid();

0 commit comments

Comments
 (0)