mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Upgrade QUnit to latest version
This commit is contained in:
parent
8ae445766f
commit
cc525b1a8d
145 changed files with 7569 additions and 6763 deletions
|
@ -1,9 +1,9 @@
|
|||
import TopicTrackingState from 'discourse/models/topic-tracking-state';
|
||||
import createStore from 'helpers/create-store';
|
||||
|
||||
module("model:topic-tracking-state");
|
||||
QUnit.module("model:topic-tracking-state");
|
||||
|
||||
test("sync", function (assert) {
|
||||
QUnit.test("sync", function (assert) {
|
||||
const state = TopicTrackingState.create();
|
||||
state.states["t111"] = {last_read_post_number: null};
|
||||
|
||||
|
@ -19,7 +19,7 @@ test("sync", function (assert) {
|
|||
assert.equal(list.topics.length, 0, "expect new topic to be removed as it was seen");
|
||||
});
|
||||
|
||||
test("subscribe to category", function(assert){
|
||||
QUnit.test("subscribe to category", function(assert){
|
||||
|
||||
const store = createStore();
|
||||
const darth = store.createRecord('category', {id: 1, slug: 'darth'}),
|
||||
|
@ -47,4 +47,4 @@ test("subscribe to category", function(assert){
|
|||
state.notify({message_type: 'new_topic', topic_id: 3, payload: {category_id: 1, topic_id: 3}});
|
||||
|
||||
assert.equal(state.get("incomingCount"), 1, "expect to properly track incoming for subcategory");
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue