Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quasar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jens Nolte
quasar
Commits
a3243de3
Commit
a3243de3
authored
3 years ago
by
Jens Nolte
Browse files
Options
Downloads
Patches
Plain Diff
Disable tests for removed code
parent
e06ed75e
Loading
Loading
No related merge requests found
Pipeline
#2524
passed
3 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/Quasar/Observable/ObservableHashMapSpec.hs
+2
-2
2 additions, 2 deletions
test/Quasar/Observable/ObservableHashMapSpec.hs
test/Quasar/Observable/ObservablePrioritySpec.hs
+1
-1
1 addition, 1 deletion
test/Quasar/Observable/ObservablePrioritySpec.hs
with
3 additions
and
3 deletions
test/Quasar/Observable/ObservableHashMapSpec.hs
+
2
−
2
View file @
a3243de3
...
@@ -31,7 +31,7 @@ spec = parallel $ do
...
@@ -31,7 +31,7 @@ spec = parallel $ do
(
retrieve
om
>>=
await
)
`
shouldReturnM
`
HM
.
fromList
[(
"key"
,
"value"
),
(
"key2"
,
"value2"
)]
(
retrieve
om
>>=
await
)
`
shouldReturnM
`
HM
.
fromList
[(
"key"
,
"value"
),
(
"key2"
,
"value2"
)]
describe
"subscribe"
$
do
describe
"subscribe"
$
do
it
"calls the callback with the contents of the map"
$
io
$
withRootResourceManager
do
x
it
"calls the callback with the contents of the map"
$
io
$
withRootResourceManager
do
lastCallbackValue
<-
liftIO
$
newIORef
unreachableCodePath
lastCallbackValue
<-
liftIO
$
newIORef
unreachableCodePath
om
::
OM
.
ObservableHashMap
String
String
<-
OM
.
new
om
::
OM
.
ObservableHashMap
String
String
<-
OM
.
new
...
@@ -86,7 +86,7 @@ spec = parallel $ do
...
@@ -86,7 +86,7 @@ spec = parallel $ do
(
retrieve
om
>>=
await
)
`
shouldReturnM
`
HM
.
singleton
"key3"
"value3"
(
retrieve
om
>>=
await
)
`
shouldReturnM
`
HM
.
singleton
"key3"
"value3"
describe
"observeKey"
$
do
describe
"observeKey"
$
do
it
"calls key callbacks with the correct value"
$
io
$
withRootResourceManager
do
x
it
"calls key callbacks with the correct value"
$
io
$
withRootResourceManager
do
value1
<-
liftIO
$
newIORef
undefined
value1
<-
liftIO
$
newIORef
undefined
value2
<-
liftIO
$
newIORef
undefined
value2
<-
liftIO
$
newIORef
undefined
...
...
This diff is collapsed.
Click to expand it.
test/Quasar/Observable/ObservablePrioritySpec.hs
+
1
−
1
View file @
a3243de3
...
@@ -33,7 +33,7 @@ spec = do
...
@@ -33,7 +33,7 @@ spec = do
(
retrieve
op
>>=
await
)
`
shouldReturnM
`
Just
"p1"
(
retrieve
op
>>=
await
)
`
shouldReturnM
`
Just
"p1"
dispose
p1
dispose
p1
(
retrieve
op
>>=
await
)
`
shouldReturnM
`
Nothing
(
retrieve
op
>>=
await
)
`
shouldReturnM
`
Nothing
it
"sends updates when its value changes"
$
io
$
withRootResourceManager
do
x
it
"sends updates when its value changes"
$
io
$
withRootResourceManager
do
result
<-
liftIO
$
newIORef
[]
result
<-
liftIO
$
newIORef
[]
let
mostRecentShouldBe
expected
=
liftIO
do
let
mostRecentShouldBe
expected
=
liftIO
do
(
ObservableUpdate
x
)
<-
(
head
<$>
readIORef
result
)
(
ObservableUpdate
x
)
<-
(
head
<$>
readIORef
result
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment