Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
shahriar
instagram-service
Commits
8996fb7f
Commit
8996fb7f
authored
Aug 22, 2021
by
soheib
Browse files
delete extra files
parent
7d1337da
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/request.schema.ts
deleted
100644 → 0
View file @
7d1337da
import
{
Prop
,
Schema
,
SchemaFactory
}
from
'
@nestjs/mongoose
'
;
import
{
Document
,
Types
}
from
'
mongoose
'
;
export
type
RequestDocument
=
Request
&
Document
;
@
Schema
({
timestamps
:
true
})
export
class
Request
{
@
Prop
()
_id
:
Types
.
ObjectId
;
@
Prop
()
cursor
:
string
;
@
Prop
()
type
:
string
;
@
Prop
()
post_short_code
:
string
;
@
Prop
()
account_username
:
string
;
}
export
const
RequestSchema
=
SchemaFactory
.
createForClass
(
Request
);
src/result.schema.ts
deleted
100644 → 0
View file @
7d1337da
import
{
Prop
,
Schema
,
SchemaFactory
}
from
'
@nestjs/mongoose
'
;
import
{
Document
,
Types
}
from
'
mongoose
'
;
export
type
ResultDocument
=
Result
&
Document
;
@
Schema
({
timestamps
:
true
})
export
class
Result
{
@
Prop
()
username
:
string
;
@
Prop
()
valid_mentions
:
number
;
@
Prop
()
mentions_before
:
number
;
@
Prop
()
followed_before
:
number
;
@
Prop
()
pending_mentions
:
number
;
@
Prop
()
score
:
number
;
@
Prop
()
valid_users
:
Array
<
string
>
;
@
Prop
()
mentions_before_users
:
Array
<
string
>
;
@
Prop
()
followed_before_users
:
Array
<
string
>
;
@
Prop
()
pending_users
:
Array
<
string
>
;
}
export
const
ResultSchema
=
SchemaFactory
.
createForClass
(
Result
);
test/app.e2e-spec.ts
deleted
100644 → 0
View file @
7d1337da
import
{
Test
,
TestingModule
}
from
'
@nestjs/testing
'
;
import
{
INestApplication
}
from
'
@nestjs/common
'
;
import
*
as
request
from
'
supertest
'
;
import
{
AppModule
}
from
'
./../src/app.module
'
;
describe
(
'
AppController (e2e)
'
,
()
=>
{
let
app
:
INestApplication
;
beforeEach
(
async
()
=>
{
const
moduleFixture
:
TestingModule
=
await
Test
.
createTestingModule
({
imports
:
[
AppModule
],
}).
compile
();
app
=
moduleFixture
.
createNestApplication
();
await
app
.
init
();
});
it
(
'
/ (GET)
'
,
()
=>
{
return
request
(
app
.
getHttpServer
())
.
get
(
'
/
'
)
.
expect
(
200
)
.
expect
(
'
Hello World!
'
);
});
});
test/jest-e2e.json
deleted
100644 → 0
View file @
7d1337da
{
"moduleFileExtensions"
:
[
"js"
,
"json"
,
"ts"
],
"rootDir"
:
"."
,
"testEnvironment"
:
"node"
,
"testRegex"
:
".e2e-spec.ts$"
,
"transform"
:
{
"^.+\\.(t|j)s$"
:
"ts-jest"
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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