Skip to content

Commit fe76f73

Browse files
authored
Apply fixes from StyleCI (#154)
1 parent 9d2e153 commit fe76f73

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/RecordedEndpointDatabasesCreationTest.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@
122122

123123
expect($databaseEntity->getProperty('Test Relation')->getRelation()[0])->toBe('375da18a-b01d-42d1-8e95-a9dc6a901db1');
124124

125-
expect($databaseEntity->getProperty('Test Rollup')->getContent()["rollup_property_name"])->toBe("Tag");
126-
expect($databaseEntity->getProperty('Test Rollup')->getContent()["relation_property_name"])->toBe("Test Relation");
127-
expect($databaseEntity->getProperty('Test Rollup')->getContent()["function"])->toBe("unique");
125+
expect($databaseEntity->getProperty('Test Rollup')->getContent()['rollup_property_name'])->toBe('Tag');
126+
expect($databaseEntity->getProperty('Test Rollup')->getContent()['relation_property_name'])->toBe('Test Relation');
127+
expect($databaseEntity->getProperty('Test Rollup')->getContent()['function'])->toBe('unique');
128128

129129
expect($databaseEntity->getProperty('Test Select')->getOptions())->toHaveCount(count($selectOptions));
130130
expect($databaseEntity->getProperty('Test Select')->getOptions()[0]->getName())->toEqual($selectOptions[0]['name']);
@@ -143,20 +143,19 @@
143143
$databaseEntity = Notion::databases()
144144
->build()
145145
->createInPage('0adbc2eb57e84569a700a70d537615be');
146-
146+
147147
expect($databaseEntity->getProperties())->toHaveCount(1);
148148
expect($databaseEntity->getProperty('Name'))->toBeInstanceOf(Title::class);
149149
});
150150

151-
152151
it('should create a new database with emoji icon', function () {
153152
$this->httpRecorder->nameForNextRequest('only-title-properties');
154153

155154
$databaseEntity = Notion::databases()
156155
->build()
157156
->iconEmoji('👍')
158157
->createInPage('0adbc2eb57e84569a700a70d537615be');
159-
158+
160159
expect($databaseEntity->getProperties())->toHaveCount(1);
161160
expect($databaseEntity->getProperty('Name'))->toBeInstanceOf(Title::class);
162161
expect($databaseEntity->getIcon())->toBe('👍');

0 commit comments

Comments
 (0)