Skip to content

Instantly share code, notes, and snippets.

View yurist38's full-sized avatar
💻
Work in progress...

Yuri Drabik yurist38

💻
Work in progress...
View GitHub Profile
@yurist38
yurist38 / ChristmasTreeBinary.txt
Created December 25, 2017 02:29
Christmas Tree Binary
1
111
10101
1001001
100010001
10000100001
100010001
10000100001
1000001000001
100000010000001
@yurist38
yurist38 / testSameObjects.spec.ps
Created August 1, 2017 21:04
Jest - test same objects and use expect.extend for logging detailed error message.
const firstArray = [{}, {}, {}];
const secondArray = [firstArray[0], {}, firstArray[2]];
test('Objects should be the same', () => {
expect.extend({
toBeSameObject(received, errMsg) {
const result = {
pass: received,
message: () => errMsg
};