diff --git a/lib/TestTemplate.js b/lib/TestTemplate.js index e2e32e7..023fd6e 100644 --- a/lib/TestTemplate.js +++ b/lib/TestTemplate.js @@ -19,6 +19,12 @@ class TestTemplate { */ accountId; + /** + * The account that created it + * @type {Account} + */ + account; + /** * The name of the test template * @type {string} @@ -59,10 +65,16 @@ class TestTemplate { for (const [ k, v ] of Object.entries(record[0])) this[k] = v; + this.account = await this.getAccount(); + return this; })(); } + async getAccount() { + return new (require('./Account'))(this.accountId); + } + assignClass() { }