You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/motion/index.js

24 lines
488 B

import * as assert from 'assert';
import { get } from '../../store';
import { spring, tweened } from '../../motion';
describe('motion', () => {
describe('spring', () => {
it('handles initially undefined values', () => {
const size = spring();
size.set(100);
assert.equal(get(size), 100);
});
});
describe('tweened', () => {
it('handles initially undefined values', () => {
const size = tweened();
size.set(100);
assert.equal(get(size), 100);
});
});
});