Skip to content

Commit 3e12f0b

Browse files
committed
Update CloudCode.spec.js
1 parent 44f0a9b commit 3e12f0b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spec/CloudCode.spec.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ const mockAdapter = {
1919
};
2020

2121
describe('Cloud Code', () => {
22+
it('can cannot load invalid cloud code', async () => {
23+
await expectAsync(
24+
reconfigureServer({
25+
cloud: true,
26+
})
27+
).toBeRejectedWith("argument 'cloud' must either be a string or a function");
28+
});
29+
2230
it('can load absolute cloud code file', done => {
2331
reconfigureServer({
2432
cloud: __dirname + '/cloud/cloudCodeRelativeFile.js',
@@ -59,14 +67,6 @@ describe('Cloud Code', () => {
5967
expect(result).toBe('Hello world function!');
6068
});
6169

62-
it('can cannot load invalid cloud code', async () => {
63-
await expectAsync(
64-
reconfigureServer({
65-
cloud: true,
66-
})
67-
).toBeRejectedWith("argument 'cloud' must either be a string or a function");
68-
});
69-
7070
it('can create functions', done => {
7171
Parse.Cloud.define('hello', () => {
7272
return 'Hello world!';

0 commit comments

Comments
 (0)