diff options
author | Nevena Bojovic <nenabojov@gmail.com> | 2022-03-01 20:05:50 +0100 |
---|---|---|
committer | Nevena Bojovic <nenabojov@gmail.com> | 2022-03-01 20:05:50 +0100 |
commit | 291803c31f829fe0d32bb3207bc11def95a7408c (patch) | |
tree | c7d43107d79291b19d8c9eceefbe91c9f9a52acf /sandbox/testAppNevena/Front/node_modules/@schematics/angular/service | |
parent | 1fa69862057db4db53cfda5be9c24b4228ef63f7 (diff) |
Urađena test aplikacija. Povezan front i back.
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@schematics/angular/service')
7 files changed, 127 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/files/__name@dasherize@if-flat__/__name@dasherize__.service.spec.ts.template b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/files/__name@dasherize@if-flat__/__name@dasherize__.service.spec.ts.template new file mode 100644 index 00000000..2c7ab1d2 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/files/__name@dasherize@if-flat__/__name@dasherize__.service.spec.ts.template @@ -0,0 +1,16 @@ +import { TestBed } from '@angular/core/testing'; + +import { <%= classify(name) %>Service } from './<%= dasherize(name) %>.service'; + +describe('<%= classify(name) %>Service', () => { + let service: <%= classify(name) %>Service; + + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(<%= classify(name) %>Service); + }); + + it('should be created', () => { + expect(service).toBeTruthy(); + }); +}); diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/files/__name@dasherize@if-flat__/__name@dasherize__.service.ts.template b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/files/__name@dasherize@if-flat__/__name@dasherize__.service.ts.template new file mode 100644 index 00000000..f14985e3 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/files/__name@dasherize@if-flat__/__name@dasherize__.service.ts.template @@ -0,0 +1,9 @@ +import { Injectable } from '@angular/core'; + +@Injectable({ + providedIn: 'root' +}) +export class <%= classify(name) %>Service { + + constructor() { } +} diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/index.d.ts b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/index.d.ts new file mode 100644 index 00000000..35e1cc52 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/index.d.ts @@ -0,0 +1,10 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { Rule } from '@angular-devkit/schematics'; +import { Schema as ServiceOptions } from './schema'; +export default function (options: ServiceOptions): Rule; diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/index.js b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/index.js new file mode 100644 index 00000000..bd9a7ccb --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/index.js @@ -0,0 +1,19 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const generate_from_files_1 = require("../utility/generate-from-files"); +function default_1(options) { + // This schematic uses an older method to implement the flat option + const flat = options.flat; + options.flat = true; + return (0, generate_from_files_1.generateFromFiles)(options, { + 'if-flat': (s) => (flat ? '' : s), + }); +} +exports.default = default_1; diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/schema.d.ts b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/schema.d.ts new file mode 100644 index 00000000..1fa0906c --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/schema.d.ts @@ -0,0 +1,25 @@ +/** + * Creates a new, generic service definition in the given or default project. + */ +export interface Schema { + /** + * When true (the default), creates files at the top level of the project. + */ + flat?: boolean; + /** + * The name of the service. + */ + name: string; + /** + * The path at which to create the service, relative to the workspace root. + */ + path?: string; + /** + * The name of the project. + */ + project?: string; + /** + * Do not create "spec.ts" test files for the new service. + */ + skipTests?: boolean; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/schema.js b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/schema.js new file mode 100644 index 00000000..4fb6d3d1 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/schema.js @@ -0,0 +1,4 @@ +"use strict"; +// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE +// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...). +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/schema.json b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/schema.json new file mode 100644 index 00000000..5c389303 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/service/schema.json @@ -0,0 +1,44 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "SchematicsAngularService", + "title": "Angular Service Options Schema", + "type": "object", + "additionalProperties": false, + "description": "Creates a new, generic service definition in the given or default project.", + "properties": { + "name": { + "type": "string", + "description": "The name of the service.", + "$default": { + "$source": "argv", + "index": 0 + }, + "x-prompt": "What name would you like to use for the service?" + }, + "path": { + "type": "string", + "format": "path", + "description": "The path at which to create the service, relative to the workspace root.", + "visible": false + }, + "project": { + "type": "string", + "description": "The name of the project.", + "$default": { + "$source": "projectName" + } + }, + "flat": { + "type": "boolean", + "default": true, + "description": "When true (the default), creates files at the top level of the project." + }, + "skipTests": { + "type": "boolean", + "description": "Do not create \"spec.ts\" test files for the new service.", + "default": false, + "x-user-analytics": 12 + } + }, + "required": ["name"] +} |