From c476b44d1102f949e301bf7da884a0faa166ded1 Mon Sep 17 00:00:00 2001 From: Luke Morris Date: Mon, 18 Dec 2017 16:11:35 -0800 Subject: [PATCH] Repair specs --- ui/spec/admin/reducers/influxdbSpec.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/spec/admin/reducers/influxdbSpec.js b/ui/spec/admin/reducers/influxdbSpec.js index adef72a72e..2f5dee0a71 100644 --- a/ui/spec/admin/reducers/influxdbSpec.js +++ b/ui/spec/admin/reducers/influxdbSpec.js @@ -10,7 +10,7 @@ import { editUser, editRole, editDatabase, - editRetentionPolicy, + editRetentionPolicyRequested, loadRoles, loadPermissions, deleteRole, @@ -203,7 +203,10 @@ describe('Admin.InfluxDB.Reducers', () => { it('can edit a retention policy', () => { const updates = {name: 'rpOne', duration: '100y', replication: '42'} - const actual = reducer(state, editRetentionPolicy(db1, rp1, updates)) + const actual = reducer( + state, + editRetentionPolicyRequested(db1, rp1, updates) + ) const expected = [{...db1, retentionPolicies: [{...rp1, ...updates}]}] expect(actual.databases).to.deep.equal(expected)