mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 19:54:14 +08:00
Upgrade QUnit to latest version
This commit is contained in:
@ -4,7 +4,7 @@ moduleForWidget('actions-summary');
|
||||
|
||||
widgetTest('listing actions', {
|
||||
template: '{{mount-widget widget="actions-summary" args=args}}',
|
||||
setup() {
|
||||
beforeEach() {
|
||||
this.set('args', {
|
||||
actionsSummary: [
|
||||
{id: 1, action: 'off_topic', description: 'very off topic'},
|
||||
@ -24,7 +24,7 @@ widgetTest('listing actions', {
|
||||
|
||||
widgetTest('undo', {
|
||||
template: '{{mount-widget widget="actions-summary" args=args undoPostAction=undoPostAction}}',
|
||||
setup() {
|
||||
beforeEach() {
|
||||
this.set('args', {
|
||||
actionsSummary: [
|
||||
{action: 'off_topic', description: 'very off topic', canUndo: true},
|
||||
@ -45,7 +45,7 @@ widgetTest('undo', {
|
||||
|
||||
widgetTest('deferFlags', {
|
||||
template: '{{mount-widget widget="actions-summary" args=args deferPostActionFlags="deferPostActionFlags"}}',
|
||||
setup() {
|
||||
beforeEach() {
|
||||
this.set('args', {
|
||||
actionsSummary: [
|
||||
{action: 'off_topic', description: 'very off topic', canDeferFlags: true, count: 1},
|
||||
@ -66,7 +66,7 @@ widgetTest('deferFlags', {
|
||||
|
||||
widgetTest('post deleted', {
|
||||
template: '{{mount-widget widget="actions-summary" args=args}}',
|
||||
setup() {
|
||||
beforeEach() {
|
||||
this.set('args', {
|
||||
deleted_at: "2016-01-01",
|
||||
deletedByUsername: 'eviltrout',
|
||||
|
Reference in New Issue
Block a user