wix-style-react
Version:
20 lines (16 loc) • 432 B
JavaScript
import { baseUniDriverFactory, findByHook } from '../../test/utils/unidriver';
export const skeletonLineDriverFactory = (base, body) => {
return {
...baseUniDriverFactory(base, body),
/**
* Gets the width
* @returns {Promise<string>}
*/
getWidth: () => base.attr('data-width'),
/**
* Gets the skin
* @returns {Promise<string>}
*/
getSkin: () => base.attr('data-skin'),
};
};