-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(test): updated test helpers to be strongly typed #3265
Conversation
Generated by 🚫 dangerJS |
@david-driscoll it looks like CI is freaking out on this one, but I like the spirit of it... can you have a look? |
Ping @david-driscoll |
Check my proposal here too: #3266 - I'd rather moving forward to new test assertion and drop current one once migration's done. |
@kwonoj I've updated and fixed the merging issues, however I'm getting this error in travis:
|
0ba2640
to
e1d4411
Compare
I figured it out! 🎉 This should be good to go now. |
package.json
Outdated
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "@reactivex/rxjs", | |||
"version": "6.0.0-alpha.3", | |||
"version": "6.0.0-alpha.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. :D you probably didn't mean to do this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I think oj had something merged in, so I just took incoming changes. Fixed.
expectSubscriptions(source.subscriptions).toBe(subs); | ||
}); | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is git freaking out about this file? It's going to ruin the blame.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appears to be whitespace... the file as it exists today in master is using windows line breaks \r\n
and when I change the file the .editorconfig
forces the file to switch to just \n
.
spec/observables/throwError-spec.ts
Outdated
@@ -1,11 +1,10 @@ | |||
import { expect } from 'chai'; | |||
import * as Rx from '../../src/Rx'; | |||
import { TestScheduler } from '../../src/internal/testing/TestScheduler'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be ../../src/testing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed found 4 instances.
expectSubscriptions(e1.subscriptions).toBe(e1subs); | ||
expectSubscriptions(e2.subscriptions).toBe(e2subs); | ||
}); | ||
import * as Rx from '../../src/Rx'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another one were git is freaking out... figure out what went wrong if you can.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CLRF vs LF
expectObservable(e1.timestamp(rxTestScheduler)).toBe(expected); | ||
expectSubscriptions(e1.subscriptions).toBe(e1subs); | ||
}); | ||
import * as Rx from '../../src/Rx'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another git freakout. lol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CLRF vs LF
cf9d556
to
2b6fa84
Compare
this allows tests to pick more on variation in type definitions when tests are being built updated danger script to change how it finds cold and hot signatures allow clrf files to be transparently converted to lf
2b6fa84
to
5ea026b
Compare
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description:
This allows tests to pick more on variation in type definitions when tests are being built
Related issue (if exists):