Fixed clientside emoji tests leaving behind a temporary file (#3691)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
3f8dda6f5a
Коммит
0b5a25a39e
@@ -24,7 +24,8 @@
|
|||||||
"describe": true,
|
"describe": true,
|
||||||
"it": true,
|
"it": true,
|
||||||
"expect": true,
|
"expect": true,
|
||||||
"before": true
|
"before": true,
|
||||||
|
"after": true
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"array-bracket-spacing": [2, "never"],
|
"array-bracket-spacing": [2, "never"],
|
||||||
|
|||||||
@@ -17,6 +17,10 @@ describe('Client.Emoji', function() {
|
|||||||
fs.writeFileSync(testGif, buffer);
|
fs.writeFileSync(testGif, buffer);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
after(function() {
|
||||||
|
fs.unlinkSync('test.gif');
|
||||||
|
});
|
||||||
|
|
||||||
it('addEmoji', function(done) {
|
it('addEmoji', function(done) {
|
||||||
TestHelper.initBasic(() => {
|
TestHelper.initBasic(() => {
|
||||||
const name = TestHelper.generateId();
|
const name = TestHelper.generateId();
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user