diff --git a/spec/oauth_spec.lua b/spec/oauth_spec.lua index caf857a..a4a6f1d 100644 --- a/spec/oauth_spec.lua +++ b/spec/oauth_spec.lua @@ -143,7 +143,9 @@ describe('oauth', function() config.reset() vim.g.pending = { data_path = tmpdir .. '/tasks.json' } local orig_load = oauth.load_json_file - oauth.load_json_file = function() return nil end + oauth.load_json_file = function() + return nil + end local c = oauth.new({ name = 'gtasks', scope = 'x', port = 0, config_key = 'gtasks' }) local creds = c:resolve_credentials() oauth.load_json_file = orig_load