Update remote.js for vue-resource

This commit is contained in:
Raymonzut
2020-04-19 18:26:06 +02:00
parent 307e71408b
commit a1a09a59ab
2 changed files with 10 additions and 30 deletions
-25
View File
@@ -1,25 +0,0 @@
const assert = require('chai').assert
const remote = require('../src/remote')
describe('remote', () => {
const data = remote.postData
describe('postData', () => {
it('should return an array', () => {
assert.typeOf(data, 'array')
})
it('should not be empty', () => {
assert.isAtLeast(data.length, 1)
})
it('should contain objects', () => {
for (obj of data) {
assert.typeOf(obj, 'object')
}
})
it('should have objects with properties', () => {
for (obj of data) {
assert.isAtLeast(Object.keys(obj).length, 1)
}
})
})
})