forked from shackbarth/xtuple-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
924dbb5
commit 5a931b7
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/*jshint trailing:true, white:true, indent:2, strict:true, curly:true, | ||
immed:true, eqeqeq:true, forin:true, latedef:true, | ||
newcap:true, noarg:true, undef:true */ | ||
/*global XT:true, XM:true, XV:true, exports:true, describe:true, it:true, require:true */ | ||
|
||
(function () { | ||
"use strict"; | ||
|
||
var crud = require("../../../../xtuple/node-datasource/test/mocha/lib/crud"), | ||
assert = require("chai").assert; | ||
|
||
var data = exports.data = { | ||
recordType: "XM.Oauth2client", | ||
autoTestAttributes: true, | ||
createHash: { | ||
clientID: "my_id_" + Math.random(), | ||
clientSecret: "mostlysecret", | ||
clientName: "Snowden", | ||
clientEmail: "[email protected]", | ||
clientType: "web server" | ||
}, | ||
updateHash: { | ||
clientSecret: "topsecret" | ||
} | ||
}; | ||
|
||
describe('Oauth2client crud test', function () { | ||
this.timeout(20 * 1000); | ||
it('should perform all the crud operations', function (done) { | ||
crud.runAllCrud(data, done); | ||
}); | ||
}); | ||
}()); |