• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mattonem / PharoJS / 14380852851

10 Apr 2025 12:48PM UTC coverage: 27.097% (+1.1%) from 26.047%
14380852851

push

github

web-flow
Update stable.yml

5702 of 21043 relevant lines covered (27.1%)

0.27 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

9.68
/Pharo/PharoJs-Examples-Tests/PjMinimalNodeApplicationTest.class.st
1
Class {
2
        #name : 'PjMinimalNodeApplicationTest',
3
        #superclass : 'PjAppTestCase',
4
        #category : 'PharoJs-Examples-Tests-Minimal',
5
        #package : 'PharoJs-Examples-Tests',
6
        #tag : 'Minimal'
7
}
8

9
{ #category : 'suite parameters' }
10
PjMinimalNodeApplicationTest class >> appClass [ 
1✔
11
        ^PjMinimalNodeApplication 
1✔
12
]
1✔
13

14
{ #category : 'tests' }
15
PjMinimalNodeApplicationTest >> exportedAppJsFileChangeTime [
×
16

×
17
        ^ self appClass appFullJsFileName resolve changeTime
×
18
]
×
19

20
{ #category : 'tests' }
21
PjMinimalNodeApplicationTest >> testArithmeticOperations [
×
22
        self assert: [ 1+2 ] evaluatesTo: 3.
×
23
        self assert: [ 32 / 8 ] evaluatesTo: 4.
×
24
]
×
25

26
{ #category : 'tests' }
27
PjMinimalNodeApplicationTest >> testLoadClass [
×
28
        | jsCounter |
×
29
        jsCounter := self evalBlock: [ PjCounter new ].
×
30
        self assert: jsCounter count equals: 0.
×
31
        1 to: 3 do: [ : expectedCount | 
×
32
                jsCounter increment.
×
33
                self assert: jsCounter count equals: expectedCount
×
34
        ]
×
35
]
×
36

37
{ #category : 'tests' }
38
PjMinimalNodeApplicationTest >> testResetApp [
×
39

×
40
        | initialChangeTime latestChangeTime |
×
41
        self evalBlock: [ globalThis instVarNamed: #forTest put: 3 ].
×
42
        self assert: [ globalThis instVarNamed: #forTest ] evaluatesTo: 3.
×
43
        initialChangeTime := self exportedAppJsFileChangeTime.
×
44
        self resetApp.
×
45
        self assert: [ globalThis instVarNamed: #forTest ] evaluatesTo: nil.
×
46
        latestChangeTime := self exportedAppJsFileChangeTime.
×
47
        self assert: latestChangeTime equals: initialChangeTime
×
48
]
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc