Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
karname-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Reza Sahebgharan
karname-ui
Commits
e7ad30c0
Commit
e7ad30c0
authored
Oct 13, 2019
by
Reza Sahebgharan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
import HTTP in devicecode
parent
8bd8cf0d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
4 deletions
+16
-4
first.test.js
__test__/first.test.js
+12
-0
devicecode.js
imports/api/methods/devicecode.js
+1
-0
worklist.js
imports/api/methods/worklist.js
+1
-0
package.json
package.json
+2
-1
main.js
server/main.js
+0
-3
No files found.
__test__/first.test.js
View file @
e7ad30c0
...
@@ -28,6 +28,17 @@ afterEach(() => {
...
@@ -28,6 +28,17 @@ afterEach(() => {
describe
(
'AppFooter'
,
()
=>
{
describe
(
'AppFooter'
,
()
=>
{
test
(
'is a Vue instance'
,
()
=>
{
test
(
'is a Vue instance'
,
()
=>
{
debugger
expect
(
wrapper
.
isVueInstance
).
toBeTruthy
();
expect
(
wrapper
.
isVueInstance
).
toBeTruthy
();
});
});
test
(
"MARCO PACS rendered"
,
()
=>
{
expect
(
wrapper
.
text
()).
toContain
(
`©2005-
${
new
Date
().
getFullYear
()}
MARCO PACS`
);
})
test
(
"فارسی rendered"
,
()
=>
{
expect
(
wrapper
.
text
()).
toContain
(
`فارسی`
);
})
});
});
\ No newline at end of file
imports/api/methods/devicecode.js
View file @
e7ad30c0
import
{
Meteor
}
from
'meteor/meteor'
;
import
{
Meteor
}
from
'meteor/meteor'
;
import
{
check
}
from
'meteor/check'
;
import
{
check
}
from
'meteor/check'
;
import
{
HTTP
}
from
'meteor/http'
;
import
DeviceCode
from
'../collections/devicecode.js'
;
import
DeviceCode
from
'../collections/devicecode.js'
;
...
...
imports/api/methods/worklist.js
View file @
e7ad30c0
import
{
Meteor
}
from
'meteor/meteor'
;
import
{
Meteor
}
from
'meteor/meteor'
;
import
{
check
}
from
'meteor/check'
;
import
{
check
}
from
'meteor/check'
;
import
{
Accounts
}
from
'meteor/accounts-base'
;
import
{
Accounts
}
from
'meteor/accounts-base'
;
import
{
HTTP
}
from
'meteor/http'
;
// Accounts.onLogin(function(user) {
// Accounts.onLogin(function(user) {
// debugger;
// debugger;
...
...
package.json
View file @
e7ad30c0
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
"test"
:
"meteor test --once --driver-package meteortesting:mocha"
,
"test"
:
"meteor test --once --driver-package meteortesting:mocha"
,
"test-app"
:
"TEST_WATCH=1 meteor test --full-app --driver-package meteortesting:mocha"
,
"test-app"
:
"TEST_WATCH=1 meteor test --full-app --driver-package meteortesting:mocha"
,
"test-jest"
:
"jest"
,
"test-jest"
:
"jest"
,
"test-jest-debug"
:
"node --inspect-brk ./node_modules/jest/bin/jest.js --no-cache --runInBand"
,
"visualize"
:
"meteor --production --extra-packages bundle-visualizer"
,
"visualize"
:
"meteor --production --extra-packages bundle-visualizer"
,
"build"
:
"npm version --allow-same-version from-git || meteor run --inspect --settings settings.json"
"build"
:
"npm version --allow-same-version from-git || meteor run --inspect --settings settings.json"
},
},
...
@@ -92,7 +93,7 @@
...
@@ -92,7 +93,7 @@
"^.+
\\
.js$"
:
"<rootDir>/node_modules/babel-jest"
,
"^.+
\\
.js$"
:
"<rootDir>/node_modules/babel-jest"
,
".*
\\
.(vue)$"
:
"<rootDir>/node_modules/vue-jest"
".*
\\
.(vue)$"
:
"<rootDir>/node_modules/vue-jest"
},
},
"collectCoverage"
:
fals
e
,
"collectCoverage"
:
tru
e
,
"collectCoverageFrom"
:
[
"collectCoverageFrom"
:
[
"**/*.{js,vue}"
,
"**/*.{js,vue}"
,
...
...
server/main.js
View file @
e7ad30c0
...
@@ -3,9 +3,6 @@ import { Meteor } from 'meteor/meteor';
...
@@ -3,9 +3,6 @@ import { Meteor } from 'meteor/meteor';
import
'../imports/api/methods/worklist.js'
;
import
'../imports/api/methods/worklist.js'
;
import
'../imports/api/methods/changePassword.js'
;
import
'../imports/api/methods/changePassword.js'
;
import
'../imports/api/methods/devicecode.js'
;
import
'../imports/api/methods/devicecode.js'
;
import
'../imports/api/server/publications/worklist.js'
;
import
'../imports/api/server/publications/worklist.js'
;
import
'../imports/api/server/publications/devicecode.js'
;
import
'../imports/api/server/publications/devicecode.js'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment