fix: 🐛 add missing test and remove jsconfig files

This commit is contained in:
dharini committed 2021-08-17 08:42:50 -07:00
1 parent 3cc5456bde
commit da04a190e6
3 files changed
+8 -2

No files matched your search

-1
View File
@@ -1 +0,0 @@
{"compilerOptions":{"target":"es6","experimentalDecorators":true},"exclude":["node_modules","bower_components","tmp","vendor",".git","dist"]}
@@ -65,6 +65,14 @@ module('Acceptance | roles | update', function (hooks) {
assert.equal(this.server.db.roles[0].name, 'Updated admin role');
});
test('cannot make changes to an existing role without proper authorization', async function (assert) {
assert.expect(1);
instances.role.authorized_actions =
instances.role.authorized_actions.filter((item) => item !== 'update');
await visit(urls.role);
assert.notOk(find('.rose-layout-page-actions .rose-button-secondary'));
});
test('can cancel changes to an existing role', async function (assert) {
assert.expect(1);
await visit(urls.role);
-1
View File
@@ -1 +0,0 @@
{"compilerOptions":{"target":"es6","experimentalDecorators":true},"exclude":["node_modules","bower_components","tmp","vendor",".git","dist"]}