Skip to content

Commit

Permalink
Update database.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Mar 15, 2024
1 parent a7d2c30 commit ea14024
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions api/coverage/cobertura-coverage.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
<coverage lines-valid="1496" lines-covered="1486" line-rate="0.9933" branches-valid="493" branches-covered="407" branch-rate="0.8255" timestamp="1710521783040" complexity="0" version="0.1">
<coverage lines-valid="1496" lines-covered="1487" line-rate="0.9939" branches-valid="493" branches-covered="408" branch-rate="0.8275" timestamp="1710522066982" complexity="0" version="0.1">
<sources>
<source>C:\dev\movinin\src\api</source>
</sources>
Expand Down Expand Up @@ -2083,7 +2083,7 @@
</class>
</classes>
</package>
<package name="src.models" line-rate="0.8448" branch-rate="0.5909">
<package name="src.models" line-rate="0.862" branch-rate="0.6363">
<classes>
<class name="Booking.ts" filename="src\models\Booking.ts" line-rate="0.8332999999999999" branch-rate="0.5">
<methods>
Expand Down Expand Up @@ -2125,7 +2125,7 @@
<line number="25" hits="10" branch="false"/>
</lines>
</class>
<class name="LocationValue.ts" filename="src\models\LocationValue.ts" line-rate="0.8332999999999999" branch-rate="0.5">
<class name="LocationValue.ts" filename="src\models\LocationValue.ts" line-rate="1" branch-rate="1">
<methods>
<method name="(anonymous_0)" hits="10" signature="()V">
<lines>
Expand All @@ -2137,9 +2137,9 @@
<line number="4" hits="8" branch="false"/>
<line number="29" hits="8" branch="false"/>
<line number="31" hits="8" branch="false"/>
<line number="32" hits="10" branch="true" condition-coverage="50% (1/2)"/>
<line number="33" hits="0" branch="false"/>
<line number="35" hits="10" branch="false"/>
<line number="32" hits="10" branch="true" condition-coverage="100% (2/2)"/>
<line number="33" hits="1" branch="false"/>
<line number="35" hits="9" branch="false"/>
</lines>
</class>
<class name="Notification.ts" filename="src\models\Notification.ts" line-rate="0.8332999999999999" branch-rate="0.5">
Expand All @@ -2161,19 +2161,19 @@
</class>
<class name="NotificationCounter.ts" filename="src\models\NotificationCounter.ts" line-rate="0.8332999999999999" branch-rate="0.5">
<methods>
<method name="(anonymous_0)" hits="10" signature="()V">
<method name="(anonymous_0)" hits="9" signature="()V">
<lines>
<line number="30" hits="10"/>
<line number="30" hits="9"/>
</lines>
</method>
</methods>
<lines>
<line number="4" hits="8" branch="false"/>
<line number="28" hits="8" branch="false"/>
<line number="30" hits="8" branch="false"/>
<line number="31" hits="10" branch="true" condition-coverage="50% (1/2)"/>
<line number="31" hits="9" branch="true" condition-coverage="50% (1/2)"/>
<line number="32" hits="0" branch="false"/>
<line number="34" hits="10" branch="false"/>
<line number="34" hits="9" branch="false"/>
</lines>
</class>
<class name="Property.ts" filename="src\models\Property.ts" line-rate="0.8332999999999999" branch-rate="0.5">
Expand Down
2 changes: 1 addition & 1 deletion api/tests/database.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('Connect to database', () => {
})
})

describe('Fail to Connect to database', () => {
describe('Fail to connect to database', () => {
it('should fail connecting to database', async () => {
const res = await databaseHelper.Connect('wrong-uri', true, false)
expect(res).toBeFalsy()
Expand Down

0 comments on commit ea14024

Please sign in to comment.