We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46074cb commit 4dbb757Copy full SHA for 4dbb757
server/db/models/location/location.spec.js
@@ -0,0 +1,28 @@
1
+const { expect } = require('chai')
2
+const db = require('../../index')
3
+const Location = db.model('location')
4
+
5
+describe('Location model', () => {
6
+ beforeEach(() => {
7
+ return db.sync({force: true})
8
+ })
9
10
+ describe('Model', () => {
11
+ describe('url', () => {
12
+ let page;
13
+ const url = 'https://www.youtube.com/watch?v=BMUiFMZr7vk'
14
15
16
+ return Location.create({url})
17
18
+ .then(location => {
19
+ page = location
20
21
22
23
+ it('tests model type', () => {
24
+ expect(page.url).to.be.equal('https://www.youtube.com/watch?v=BMUiFMZr7vk')
25
26
27
28
+})
0 commit comments