Commit e7ad30c0 authored by Reza Sahebgharan's avatar Reza Sahebgharan

import HTTP in devicecode

parent 8bd8cf0d
...@@ -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
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';
......
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;
......
...@@ -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": false, "collectCoverage": true,
"collectCoverageFrom": [ "collectCoverageFrom": [
"**/*.{js,vue}", "**/*.{js,vue}",
......
...@@ -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';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment