Skip to content

Instantly share code, notes, and snippets.

@sroccaserra
Last active September 23, 2016 08:55
Show Gist options
  • Select an option

  • Save sroccaserra/fb985adba6569898e53ab960a2ef6176 to your computer and use it in GitHub Desktop.

Select an option

Save sroccaserra/fb985adba6569898e53ab960a2ef6176 to your computer and use it in GitHub Desktop.
storage.makeId('dress')
.then(a => storage.makeId('dress').then(b => [a, b]))
.then(([a, b]) => storage.makeId('dress').then(c => [a, b, c]))
.then(([a, b, c]) => {
a.should.be.lessThan(b);
a.should.be.lessThan(c);
b.should.be.lessThan(c);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment