FIX: Randomly failing QUnit test.

The `post` variable can be an actual post object or a `new Placeholder("post-placeholder")` which does not define the function `get`.

* QUNIT_SEED=11414431645131211212599424733847938795
This commit is contained in:
Guo Xiang Tan 2018-11-27 15:58:00 +08:00
parent a1e77aa2ed
commit c92c56d986
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ export default Ember.Controller.extend(BufferedContent, {
const postStream = this.get("model.postStream");
const firstLoadedPost = postStream.get("posts.firstObject");
if (post.get("post_number") === 1) {
if (post.get && post.get("post_number") === 1) {
return;
}