summaryrefslogtreecommitdiffstats
path: root/webapp/tests
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-07-31 09:49:19 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-07-31 09:49:19 -0400
commit0b5a25a39ef5aaca7044118d6fd9abd099e40697 (patch)
tree06f096ad1365b6bd698ff8af9e9885449ff9bccb /webapp/tests
parent3f8dda6f5ad676c976fd5ae575a6790fdb505449 (diff)
downloadchat-0b5a25a39ef5aaca7044118d6fd9abd099e40697.tar.gz
chat-0b5a25a39ef5aaca7044118d6fd9abd099e40697.tar.bz2
chat-0b5a25a39ef5aaca7044118d6fd9abd099e40697.zip
Fixed clientside emoji tests leaving behind a temporary file (#3691)
Diffstat (limited to 'webapp/tests')
-rw-r--r--webapp/tests/client_emoji.test.jsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/webapp/tests/client_emoji.test.jsx b/webapp/tests/client_emoji.test.jsx
index 98f25cb7d..6370be256 100644
--- a/webapp/tests/client_emoji.test.jsx
+++ b/webapp/tests/client_emoji.test.jsx
@@ -17,6 +17,10 @@ describe('Client.Emoji', function() {
fs.writeFileSync(testGif, buffer);
});
+ after(function() {
+ fs.unlinkSync('test.gif');
+ });
+
it('addEmoji', function(done) {
TestHelper.initBasic(() => {
const name = TestHelper.generateId();