mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 02:41:09 +08:00
FIX: Editing a title would not clear it out on your next edit.
This commit is contained in:
@ -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'));
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user