UNPKG

startercodeforcicdpipeline

Version:

This is my starter code for my TYPESCRIPT CI CD PIPELINE

13 lines (12 loc) 498 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Book_1 = require("../Book"); const Bookstore_1 = require("../Bookstore"); describe('Bookstore - Add Book', () => { it('should add a book to the bookstore', () => { const bookstore = new Bookstore_1.Bookstore(); const book = new Book_1.Book(1, 'The Great Gatsby', 'F. Scott Fitzgerald', true); bookstore.addBook(book); expect(bookstore.findBookById(1)).toEqual(book); }); });