mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-05-31 04:01:04 +00:00
Initial add from apps
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
// Copyright 2017-2018 @polkadot/ui-identicon authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import newSeeder from './seeder';
|
||||
|
||||
describe('seeder', () => {
|
||||
let seeder;
|
||||
|
||||
beforeEach(() => {
|
||||
seeder = newSeeder(new Uint8Array([1, 2, 3, 4]));
|
||||
});
|
||||
|
||||
it('generates numbers using 2 spaces', () => {
|
||||
expect(
|
||||
seeder()
|
||||
).toEqual(0.0156402587890625);
|
||||
});
|
||||
|
||||
it('generates numbers using 2 spaces (incremented)', () => {
|
||||
seeder();
|
||||
|
||||
expect(
|
||||
seeder()
|
||||
).toEqual(0.0078582763671875);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user