File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 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 ' ]);
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-
152151it ('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 ('👍 ' );
You can’t perform that action at this time.
0 commit comments