mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: Say the file uploaded is too large, not "image" as you can upload
other kinds of files.
This commit is contained in:
parent
ae20369733
commit
285c66b899
25 changed files with 3 additions and 26 deletions
|
@ -57,7 +57,7 @@ test("prevents files that are too big from being uploaded", function() {
|
|||
sandbox.stub(bootbox, "alert");
|
||||
|
||||
not(validUpload([image]));
|
||||
ok(bootbox.alert.calledWith(I18n.t('post.errors.image_too_large', { max_size_kb: 5 })));
|
||||
ok(bootbox.alert.calledWith(I18n.t('post.errors.file_too_large', { max_size_kb: 5 })));
|
||||
});
|
||||
|
||||
var dummyBlob = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue