mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Editing a title would not clear it out on your next edit.
This commit is contained in:
parent
11bb9aafc7
commit
d1a0b5dd44
2 changed files with 36 additions and 12 deletions
|
@ -159,3 +159,20 @@ asyncTest('importQuote with no post', function() {
|
|||
});
|
||||
|
||||
});
|
||||
|
||||
test('clearState', function() {
|
||||
var composer = Discourse.Composer.create({
|
||||
originalText: 'asdf',
|
||||
reply: 'asdf2',
|
||||
post: Discourse.Post.create({id: 1}),
|
||||
title: 'wat'
|
||||
});
|
||||
|
||||
composer.clearState();
|
||||
|
||||
blank(composer.get('originalText'));
|
||||
blank(composer.get('reply'));
|
||||
blank(composer.get('post'));
|
||||
blank(composer.get('title'));
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue