Skip to content

Instantly share code, notes, and snippets.

View d-ash's full-sized avatar

Andrew Shubin d-ash

  • Melbourne, Australia
View GitHub Profile
! function(t, e) {
"function" == typeof define && define.amd ? define(function() {
return e(t)
}) : "object" == typeof module && module.exports ? module.exports = e(t) : (t.lottie = e(t), t.bodymovin = t.lottie)
}(window || {}, function(window) {
"use strict";
function ProjectInterface() {
return {}
}
@d-ash
d-ash / promises-test.js
Created February 7, 2018 03:37
Testing a logic that returns a promise
const createPromise = (successful, arg) => {
return new Promise((resolve, reject) => {
successful ? resolve(arg) : reject(arg);
});
};
describe('Testing a promise', () => {
describe('Returning a Promise', () => {
it('calls the resolve callback', () => {
expect.assertions(1);

If tmux fails with the message "open terminal failed: missing or unsuitable terminal: rxvt-unicode-256color".

$ ssh remotemachine mkdir -p .terminfo/r
$ scp /usr/share/terminfo/r/rxvt-unicode* remotemachine:.terminfo/r/