mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-10 17:49:58 +00:00
Simplify build scripts and implement preliminary tests
This commit is contained in:
14
test/sharedDriver.js
Normal file
14
test/sharedDriver.js
Normal file
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
|
||||
const { create, destroy } = require("./driver");
|
||||
|
||||
|
||||
let driver;
|
||||
|
||||
module.exports = async () => {
|
||||
if (!driver) {
|
||||
driver = await create();
|
||||
}
|
||||
|
||||
return driver;
|
||||
};
|
||||
Reference in New Issue
Block a user